Quick SCP

Posted on Thursday, February 25th, 2010 at 11:39 am in

Logged into source host

scp -r -p * root@remotehost:/home/user/public_html

This will copy *all* files to the directory /home/user/public_html in the remote server remotehost. The -p preserves the modification and access times, as well as the permissions of the source-file in the destination-file. The -r copies the contents of the source-file (directory in this case) recursively.

You might also be interested in
Tags:

Add your comment

Leave a Reply

Leave A Comment

Top