duplicity-backup.sh icon indicating copy to clipboard operation
duplicity-backup.sh copied to clipboard

Possible misbehaviour of du in get_source_file_size() when using include/exclude globbing filelists

Open zertrin opened this issue 9 years ago • 3 comments

It doesn't seem that the function get_source_file_size() handles the case when include/exclude globbing filelists are used.

This should be fixed in a future version.

zertrin avatar Jul 06 '15 10:07 zertrin

If I may add a request to this one, it would be great if the -l option could show the size of the backed up files so that one can grep+awk and check whether there is something that needs shrinking.

arichiardi avatar Sep 06 '16 23:09 arichiardi

Some more info on this issue: the problem is basically that when using include/exclude-filelists with duplicity, there isn't yet an easy way to translate that into something that du can understand. Thus the script fallback to just applying du to the ROOT variable.

Help and patches are welcomed ;)

zertrin avatar Sep 08 '16 19:09 zertrin

I guess the patch could also involve #113 as there must be a new way to provide the--exclude/include-filelist options somehow and from there process the +/--es.

arichiardi avatar Sep 08 '16 19:09 arichiardi