I would like to backup the following folders with duplicity
/home
/etc
/usr/local
/root
/var
/boot
and exclude
/var/tmp
/var/run
/var/lock
/home/*/.thumbnails
/home/*/.cache
/home/*/.local/share/Trash
/root/.thumbnails
/root/.cache
/root/.local/share/Trash
I already learned that I have to specify one source directory to save and that I can adjust that with include
and exclude
options.
So, I could give /
as source directory and exclude **
(which would sum up to nothing) and include the folders that I want to save.
Source /
and --exclude /
would give en empty set, --include ...
beats the exclude
and adds the folders. But then, I will not be able to exclude the folders I want to exclude, right? Or am I missing something?