← Back to team overview

duplicity-team team mailing list archive

Re: [Question #245190]: Exclude subfolders in included directories with exclude globbing filelist

 

Question #245190 on Duplicity changed:
https://answers.launchpad.net/duplicity/+question/245190

    Status: Open => Answered

edso proposed the following answer:
On 09.03.2014 00:31, Martin Abbrent wrote:
> New question #245190 on Duplicity:
> https://answers.launchpad.net/duplicity/+question/245190
> 
> I'm using Duply [1] as simple frontend for Duplicity but this forces me to use an exclude globbing filelist to specify which files I want to backup. Now I want to exclude a subfolder of an included directory but it is getting backed up every time I start it. I force full backups for testing.
> 
> This is my exclude file list:
> 
> + /etc
> + /root
> + /var
> + /home
> - /root/.cache
> - /var/cache
> - /var/lib/dpkg
> - /var/lib/apt
> - **
> 
> I also tried to add slashes and double "*" to the excluded ones. Duply runs the following command:
> 
> duplicity full --name 'duply_myname' --encrypt-key # --sign-key # --verbosity '4' --gpg-options '--compress-algo=bzip2 --bzip2-compress-level=9' --full-if-older-than 1M --volsize 100 --exclude-globbing-filelist /etc/duply/myname/exclude / s3://amazon-desitination/dir
> 
> Does anybody see the mistake?
> 


yes. ex/inclusions are checked from top to bottom for each path. there is a detailed description on the duplicity manpage
 http://duplicity.nongnu.org/duplicity.1.html#sect10

long story short. order the list by path depths descending, long first,
so that a deeper folder is not masked by a more generic parent folder
definition.

..ede/duply.net

-- 
You received this question notification because you are a member of
duplicity-team, which is an answer contact for Duplicity.