Tuesday, March 7, 2017

Copy directories with scp

scp -rp [directory_to_copy] [user]@[host]:[path]
Where:

[directory_to_copy]: directory to be copied
[user]: destination host user
[host]: destination host
[path]: destination path
-r: recursive, copy all directory content.
-p: preserves modification times, access times, and modes from the original file.

0 comments:

Post a Comment

Popular Posts

Recent Posts

Unordered List

Text Widget

Pages

Search This Blog

Powered by Blogger.