Here's how to exclude files when
using rsync.
I back up my desktop automatically every night
using rsync.
I back up my laptop to my portable external hard drive about once a week
using rsync after syncing the files using Unison.
I've
used rsync / unison for about six years now to synchronize my portables and server: now I get to say I've been «simulating iCloud».
If you are setting up a script to
use rsync, which you usually are, you should take the extra minute to exclude from a file list instead to make future maintenance easier.
Not exact matches
I
use two free, open - source software tools for backup:
rsync and Unison.
The tricky thing with
rsync is that you need to
use a relative path when you are trying to exclude things, because when it tries to match the exclusions it won't
use the first part of the path for the match... it's weird.
Say, for example, you are trying to backup / data / web / and send it to another server, so you
use a command like
rsync - a / data / web / user@server: / backups / data / web / to make it happen... but you'd really like to skip syncing the / data / web / cache / folder.
If you couple
rsync with compression via tar and schedule it
using the crontab, you can have automatic backups sent to your network attached storage (NAS) or remote server through SSH.
In a March 26 blog post Vickery explained that he identified an exposed port typically
used for remote synchronization (
rsync).