How to put parameters before AND after the include/exclude file ?
Brought to you by:
edso
Hi
As duplicity cares about the order of the inclusion/exclusion parameters, I would like to put some exclusions before the globbing file and some others after.
For instance, I would like to always have --exclude='/proc' --exclude='/lost+found' before my file list and --exclude '**' always after.
This looks more secure to me because I can then forget about those special cases in my file list, which I want to keep as clear as possible and not critical (e.g. if the last line with - ** is accidentaly deleted this would include many files I don't want to see in my backups).
Is there any way to do this with duply ?
In the profile directory, rename exclude to exclude.manual and have the pre script build the real exclude from it. That is what I am doing.
sounds good to me.
alternatively, leave the exclude file empty and add something to your conf file like
DUPL_PARAMS=" $DUPL_PARAMS --exclude=/proc --exclude=/lost+found --exclude-filelist= '${CONFDIR}/exclude.manual' --exclude '**' "
and populate '<profile>/exclude.manual' w/ your in/excludes.</profile>
generally i would advise to manually edit the exclude file though every time and run a backup/restore to verify that everything runs as expected.
.. ede
Last edit: ede 2016-11-30