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