I nearly forget about reverse copy. Yasterday sis Salina have problem to copy file for Server Source to Server Destination.
Here is the way where we can pull the data ( reverse copy )
Normal copy ( copy command at source server ) source -> destination
Reverse copy ( copy command at destination server ) destination <- source
For example you want to copy DATA from Server S (source) to Server D (destination):
Normally at Server S
# scp /path/to/DATA aminah@ipServerD: -> file akan ada kat home/aminah/
# scp /path/to/copyDATA aminah@ipServerD:/path/to/save/ -> file akan ada kat /path/to/save/
But for reverse copy, we copy DATA to our home at server S.
-> so at server S we have /home/aminah/DATA
At Server D
# scp aminah@ServerS.contoso.com.my:DATA ./
Reverse SCP for amazon
#scp -i mykey.pem root@ec2-184-73-72-150.compute-1.amazonaws.com:/file/path/filename ./
./ -> mean current directory
Normal SCP for amazon
#scp -i mykey.pem filename root@ec2-184-73-72-150.compute-1.amazonaws.com:/path/to/save/
hehehe... done..
No comments:
Post a Comment