Automatic snap duplicity update to 2.0.0 has broken my scripts

Keith keithw at caramail.com
Tue Aug 8 16:45:43 UTC 2023


On 8/8/23 03:49, Colin Law wrote:
> Snap has automatically updated my duplicity on multiple systems to
> version 2.0.0 and all my backup scripts are failing.  It appears there
> are breaking changes in version 2, or there is a bug.  For example,
> when I run the command
> 
> /snap/bin/duplicity verify   --no-encryption --full-if-older-than "4W"
>    --log-file /home/colinl/temp/duplicity.log -v5 --exclude <exclude
> list> --include <include list> rsync://user@server/path <target_dir>
> 
> I get the error
> 
> CommandLineError: Source should be url, not directory.  Got
> '/home/colinl/temp/duplicity.log' instead.

Wild guess: Does changing --log-file to --log-file= make any difference? 
Manpage doesn't specify, but "$ duplicity -h" lists the latter syntax 
for log-file and the --include and --exclude options. It makes me wonder 
since you mentioned a change to the command-line parser.

> 
> Does anyone know whether this is a bug or if the command line has
> changed.  I tried using man but can't work out what the problem is.
> In some areas it suggests that the command (verify) has to go after
> the options, but right at the end it shows the way round I have it.
> The change log does suggest fixes to the command line parsing but
> isn't clear if there is a breaking change.
> 

Do your scripts work if you revert the duplicity snap back to the 
previous (working) version?

If they do then it's probably a bug or the result of the new parser 
being more finicky about the syntax.

-- 
Keith






More information about the ubuntu-users mailing list