tips.paddyonline.net

If you need tips & tricks, here they are...

Joomla! AddThis

Share

Rsync

Article Index

How to use Rsync to syncronize two directories

rsync -arvchtS --no-R --delete-during --numeric-ids

Examples

# rsync -arvchtS --no-R --delete-during --numeric-ids blaj/blaj2 blaj1
sending incremental file list
blaj2/
blaj2/du
blaj2/hej

sent 173 bytes received 54 bytes 454.00 bytes/sec
total size is 0 speedup is 0.00

# rm blaj/blaj2/hej
# rsync -arvchtS --no-R --delete-during --numeric-ids blaj/blaj2 blaj1
sending incremental file list
blaj2/
deleting blaj2/hej

sent 74 bytes received 16 bytes 180.00 bytes/sec
total size is 0 speedup is 0.00

Add comment

Security code
Refresh

Please consider supporting our efforts.


We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.