How to copy directories and files across servers in Linux?
Posted: Tue Jun 01, 2010 6:06 pm
The best way is to use SCP (Secure Copy) if you have SSH access to the other server. If you don't have SSH access then see fastcopy example in Linux.
Note -r will recursively copy all files and subdirectories within the folders.
Code: Select all
scp -r user@host:/directory/SourceDir TargetDir