Filetransfer with scp and rsync


scp -rp sourcedirectory user@dest:/path

-p Preserves modification times, access times, and modes from the original file.
-r Recursively copy entire directories.
(Note that scp follows symbolic links encountered in the tree traversal.)


rsync -ravz --delete sourcedirectory user@dest:/path

-r recurse into directories
-a archive mode
-z compress file data during the transfer

Include exclude variables

–exclude=PATTERN exclude files matching PATTERN
–exclude-from=FILE read exclude patterns from FILE
–include=PATTERN don’t exclude files matching PATTERN
–include-from=FILE read include patterns from FILE

Leave a Reply

WordPress SEO fine-tune by Meta SEO Pack from Poradnik Webmastera