Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go



CLICK HERE TO VISIT THE UPDATED SURVIVAL GUIDE

Synchronise Folders

20200124 To synchronise a local folder to a remote backup of that folder use the rsync command.

$ rsync -avzh local/ rhost:BACKUP/local/

To ignore any file/folder named cache:

$ rsync -avzh --exclude 'cache' local/ rhost:BACKUP/local/

To remove any remote files that are not in the current source folder use --delete:

$ rsync -avzh --delete local/ rhost:BACKUP/local/


Copyright © Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware and the author of open source software including Rattle and wajig.
Also the author of Data Mining with Rattle and Essentials of Data Science.