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

Synchronise Directories

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

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

To ignore any file/directory named cache:

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

To ignore backup files, for example:

$ rsync -avzh --exclude '*~' local/ rhost:BACKUP/local/

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

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

Support further development by purchasing the PDF version of the book.
Other online resources include the Data Science Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 1995-2020 Togaware Pty Ltd. Creative Commons ShareAlike V4.