rsnapshot configuration in /etc/rsnapshot.conf
:
exclude_file /etc/rsnapshot.excludes
The syntax of the exclude file is a little bit tricky, it is explained in this StackOverflow answer.
You need a space between +
and -
before paths.
+ /home | |
+ /var | |
- /dev | |
- /home/*/.cache/* | |
- /home/*/.local/share/Trash | |
- /home/*/.mozilla/firefox/*/Cache | |
- /mnt | |
- /proc | |
- /run | |
- /selinux | |
- /tmp | |
- /var/cache/apt/archives/* | |
- /var/lib/docker | |
- /var/lib/lxcfs | |
- /var/lock | |
- /var/run | |
- /var/tmp | |
- lost+found |
rsnapshot configuration in /etc/rsnapshot.conf
:
exclude_file /etc/rsnapshot.excludes
The syntax of the exclude file is a little bit tricky, it is explained in this StackOverflow answer.
You need a space between +
and -
before paths.