Skip to content

Instantly share code, notes, and snippets.

@CristianCantoro
Last active December 12, 2021 03:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CristianCantoro/0febf9f1324bf530bf4348b8a37ba76a to your computer and use it in GitHub Desktop.
Save CristianCantoro/0febf9f1324bf530bf4348b8a37ba76a to your computer and use it in GitHub Desktop.
+ /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

Example exclude file for rsnapshot

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment