duplicity-talk
[Top][All Lists]
Advanced

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

Re: [Duplicity-talk] [bug 884371] Globbing patterns fail to include some


From: edgar . soldin
Subject: Re: [Duplicity-talk] [bug 884371] Globbing patterns fail to include some files
Date: Thu, 24 Nov 2011 20:42:51 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0

check manpage chapter file selection
http://duplicity.nongnu.org/duplicity.1.html

this is a known confusing issue, but as long as nobody takes care of it it'll 
probably stay that way ;)

let me explain:

the selection works from top to bottom prioritywise, and the patterns have to 
match if defined.

so your defs say

- **/test-dup/folder-a
**/test-dup/folder-b/*.txt
- **/test-dup/folder-b

which says nothing about the folder-c or other paths. adding

+ **

to the end would fix that.

remember the expressions are matched one after another, if one matches the 
testing is stopped and it's handled according to (+/- or + if none).
if none of the expressions matches it's handled as if it was excluded.

..ede/duply.net

On 24.11.2011 20:16, Elifarley Callado Coelho Cruz wrote:
I wonder if anyone has experienced the same kind of problem I'm facing.

In the example below, I would expect to have all 3 files from folder-c included 
in the backup, but they are not:

--------------------------------------------------

BASE=/tmp
mkdir -p $BASE/test-dup/folder-{a,b,c}

touch $BASE/test-dup/file-{1.txt,2.jpg,3.tmp}
touch $BASE/test-dup/folder-a/file-{4.txt,5.jpg,6.tmp}
touch $BASE/test-dup/folder-b/file-{7.txt,8.jpg,9.tmp}
touch $BASE/test-dup/folder-c/file-{10.txt,11.jpg,12.tmp}

tree /tmp/test-dup/
# result:
/tmp/test-dup/
+-- file-1.txt
+-- file-2.jpg
+-- file-3.tmp
+-- folder-a
¦ +-- file-4.txt
¦ +-- file-5.jpg
¦ +-- file-6.tmp
+-- folder-b
¦ +-- file-7.txt
¦ +-- file-8.jpg
¦ +-- file-9.tmp
+-- folder-c
     +-- file-10.txt
     +-- file-11.jpg
     +-- file-12.tmp

cat my-file-list
# result:
- **/test-dup/folder-a
**/test-dup/folder-b/*.txt
- **/test-dup/folder-b

duplicity --name test-dup --include-globbing-filelist my-file-list
$BASE/test-dup/ file://$BASE/test-dup-backup

duplicity --name test-dup list-current-files file://$BASE/test-dup-backup
# result:
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Mon Oct 31 13:31:33 2011
Mon Oct 31 13:15:04 2011 .
Mon Oct 31 13:15:04 2011 folder-b
Mon Oct 31 13:15:04 2011 folder-b/file-7.txt


I've filed a bug report at https://bugs.launchpad.net/duplicity/+bug/884371

Thanks,
--
Elifarley Cruz



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



reply via email to

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