Remote Linux server to remote linux server dir copy. How? [closed]
What is the best way to copy a directory (with sub-dirs and files) from one remote Linux server to another remote Linux server? I have connected to both using SSH client (like Putty). I have root access to both. There are two ways I usually do this, both use ssh: scp -r sourcedir/ user@dest.com:/dest/dir/ or, the more robust and faster (in terms of transfer speed) method: rsync -auv -e ssh --progress sourcedir/ user@dest.com:/dest/dir/ Read the man pages for each command if you want more details about how they work. I would modify a previously suggested reply: rsync -avlzp /path/to/sfolder