Filetransfer with scp and rsync
SCP
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
rsync -ravz --delete sourcedirectory user@dest:/path
-r recurse into directories
-a archive mode
-z compress file data during the transfer
Include exclude variables
-F
–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