Rsync Tutorials and Examples

Linux rsync tutorial

Rsync is a great tool to copy and sync directories and files across computers. It can also be used to manage source code and data read more

How to use custom identity file with rsync on Linux

Rsync uses ssh to sync files between two machines and usually it will use default identity file present in ~/.ssh/ directory on Linux. In case read more

Rsync – exclude specific file extension

To exclude a specific file extension (say .class) we can use –exclude “*.class” (or –exclude=”*.class”). Note that it can be repeated multiple time. $ rsync read more

Rsync – show progress and transfer rate

Rsync can be used to sync directories and files from one machine to another. Sometime we want to see the progress and transfer speed. For read more

Rsync – using dryrun to list changed files

Use rsync dryrun (-n) with -i (or –itemize-changes) to list changed files. $ rsync -n -i -a ./dir1 ./destdir/ cd+++++++ dir1/ >f+++++++ dir1/file1.php >f+++++++ dir1/file2.php read more

How to use rsync for production release automation

Rsync can be used to automate the production releases for wordpress or any other site. I maintain two wordpress sites – one for development purpose and one read more