Saturday, March 7, 2009

Move file from one Linux machine to another

The cp command is pretty useful, but what if you want to move a file or folder from one Linux machine to another? For that, you're best off using rsync.

rsync -a -e ssh /currentDirectory/ newServer:/newDirectory

This will move your data from the location you specify as the currentDirectory to the newDirectory on the newServer, and also retain the symbolic links between files.

I found the information here

No comments:

Post a Comment

Hi, thanks for choosing to leave a comment. Please make sure that it's relevant to the topic you're commenting on though. If you're just trying to promote another product or webpage, sorry, but your comment will be deleted.