Page 1 of 1

How to copy directories and files across servers in Linux?

Posted: Tue Jun 01, 2010 6:06 pm
by Saman
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.

Code: Select all

scp -r user@host:/directory/SourceDir TargetDir
Note -r will recursively copy all files and subdirectories within the folders.