I've looked around a bit without finding an exact answer to my question, which is how to specify a directory to be excluded from only the remote filesystem backup.
Say I've got two machines: a desktop (server) and a laptop. My home directory on each of them is /home/tom
. rsnapshot
lives on the desktop (localhost
) with its config file(s). The backup
commands, therefore, are:
backup /home/tom/ localhost/
backup tom@laptop:/home/tom/ laptop/
All well and good. But say I've got /home/tom/music
on the laptop. It's stuff copied over from the desktop, and large. But when I go to exclude /home/tom/music/
from only the backup of tom@laptop
:
exclude tom@laptop:/home/tom/music/
But this doesn't result in music/
being excluded, and causes my herpes to flare up.
Doing this:
exclude /home/tom/music/
of course causes music/
to be excluded from both the localhost
and laptop
backups, and causes my PID to flare up.
My solution for now is to simply have separate rsnapshot
config files for each host, and execute rsnapshot
once for each host. But this shouldn't be necessary.
So how would I exclude a directory from only the remote (laptop) backup?