duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] --include and --exclude questions


From: edgar . soldin
Subject: Re: [Duplicity-talk] --include and --exclude questions
Date: Fri, 06 Jun 2008 11:47:53 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080421 Thunderbird/2.0.0.14 Mnenhy/0.7.5.0

why not using *--include-globbing-filelist* *or --exclude-globbing-filelist...?

they allow according to the documentation more explicit +/- definitions

regards ede
--
*
On Thu, 5 Jun 2008 18:08:10 -0400
"Andrew Kohlsmith (lists)" <address@hidden> wrote:

duplicity
        --no-encrypt
        --include /etc
        --include /home
        --include /mnt/data/usrlocal/scripts
        --include /mnt/data/var/data
        --include /mnt/data/var/spool
        --include /mnt/data/var/www
        --exclude /mnt/data/var/www/site1
        --exclude /mnt/data/var/www/site2
        --exclude /mnt/data/var/data/duplicity
        --exclude '**'
        / file:///var/data/duplicity/root

But this quickly fills up my root, because it seems that site1 and site2's areas are getting backed up... What am I missing?

I can answer this part. You probably already know that, at the first include or 
exclude that matches, duplicity no longer moves forward and either includes or 
excludes as specified. Take the /mnt/data/var/www/site1 folder as an example:

(no match)      --include /etc
(no match)      --include /home
(no match)      --include /mnt/data/usrlocal/scripts
(no match)      --include /mnt/data/var/data
(no match)      --include /mnt/data/var/spool
(is match)      --include /mnt/data/var/www
(skipping)      --exclude /mnt/data/var/www/site1
(skipping)      --exclude /mnt/data/var/www/site2
(skipping)      --exclude /mnt/data/var/data/duplicity
(skipping)      --exclude '**'

As you can see, the --exclude rule for /mnt/data/var/www matches at least part of 
/mnt/data/var/www/site1. The best option would be to have the specific excludes first, 
includes later, then the "**" exclude last to catch all else.
------------------------------------------------------------------------

_______________________________________________
Duplicity-talk mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/duplicity-talk






reply via email to

[Prev in Thread] Current Thread [Next in Thread]