How to copy directories and files across servers in Linux?

Linux OS Topics
Post Reply
User avatar
Saman
Lieutenant Colonel
Lieutenant Colonel
Posts: 828
Joined: Fri Jul 31, 2009 10:32 pm
Location: Mount Lavinia

How to copy directories and files across servers in Linux?

Post by Saman » 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.

Code: Select all

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

Return to “Linux”