Posted By

nate63179 on 11/03/09


Tagged

Bash rsync sync


Versions (?)


Advertising

Website Promotion DIRECTORY is a crucial factor for all websites that need to gain better organic search engine rankings and increase website traffic.
Submitting your website as part of your Web Promotion strategy to our SEO friendly and high traffic Business Directory for review is an excellent way to gain a valuable backlink and increase your websites visibility online.

Submit Site


Rsync: sync local files to remote


Published in: Bash 






Simple rsync command to synchronize two directories.

Other useful options

-h, --human-readable -C, --cvs-exclude = excludes common source file endings --delete -z, --compress --exclude=PATTERN --compare-dest=DIR This option instructs rsync to use DIR on the destination machine as an additional hierarchy to compare destination files against doing transfers (if the files are missing in the destination directory). If a file is found in DIR that is identical to the sender's file, the file will NOT be transferred to the destination directory. This is useful for creating a sparse backup of just files that have changed from an earlier backup.

Expand | Embed | Plain Text
  1. rsync --progress --compress --recursive small_thumbs nate@somesite.com:foodir # copy recursive, with progress print out
  2. rsync -rz --progress small_thumbs nate@somesite.com:foodir # same, in short hand

Report this snippet 

You need to login to post a comment.

Download royalty free graphics