Error --excluding '*.lock', but not '**.lock'

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Error --excluding '*.lock', but not '**.lock'

duplicity-talk mailing list
Duplicity v.0.7.19.  I get this warning every time I try to run a remote backup:

/usr/lib/python2.7/dist-packages/Crypto/Cipher/blockalgo.py:141: FutureWarning: CTR mode needs counter parameter, not IV
  self._cipher = factory.new(key, *args, **kwargs)

I also get the following error, any time I try to --exclude '*.lock'  
If I instead --exclude '**.lock' I do not get the error:

Traceback (innermost last):
  File "/usr/bin/duplicity", line 1581, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1567, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1406, in main
    action = commandline.ProcessCommandLine(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line 1154, in ProcessCommandLine
    set_selection()
  File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line 978, in set_selection
    sel.ParseArgs(select_opts, select_files)
  File "/usr/lib/python2.7/dist-packages/duplicity/selection.py", line 250, in ParseArgs
    self.add_selection_func(self.glob_get_sf(arg, 0))
  File "/usr/lib/python2.7/dist-packages/duplicity/selection.py", line 436, in glob_get_sf
    sel_func = self.glob_get_normal_sf(glob_str, include)
  File "/usr/lib/python2.7/dist-packages/duplicity/selection.py", line 567, in glob_get_normal_sf
    raise FilePrefixError(glob_str)
 FilePrefixError: *.lock

The command for the latter is:

duplicity --backend-retry-delay 60 --asynchronous-upload --name TEST --volsize 50 --full-if-older-than 6M --exclude '*.lock' /home/me/Desktop/TEST sftp://[hidden email]/Backup

_______________________________________________
Duplicity-talk mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
Reply | Threaded
Open this post in threaded view
|

Re: Error --excluding '*.lock', but not '**.lock'

duplicity-talk mailing list
On 13.05.2020 06:13, Diagon via Duplicity-talk wrote:
> Duplicity v.0.7.19.  I get this warning every time I try to run a remote backup:
>
> /usr/lib/python2.7/dist-packages/Crypto/Cipher/blockalgo.py:141: FutureWarning: CTR mode needs counter parameter, not IV
>   self._cipher = factory.new(key, *args, **kwargs)

0.7 is not maintained anymore try the 0.8 line featuring python3 support and more. maybe install in parallel before switching completely?

> I also get the following error, any time I try to --exclude '*.lock'
> If I instead --exclude '**.lock' I do not get the error:
>
> Traceback (innermost last):
>   File "/usr/bin/duplicity", line 1581, in <module>
>     with_tempdir(main)
>   File "/usr/bin/duplicity", line 1567, in with_tempdir
>     fn()
>   File "/usr/bin/duplicity", line 1406, in main
>     action = commandline.ProcessCommandLine(sys.argv[1:])
>   File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line 1154, in ProcessCommandLine
>     set_selection()
>   File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line 978, in set_selection
>     sel.ParseArgs(select_opts, select_files)
>   File "/usr/lib/python2.7/dist-packages/duplicity/selection.py", line 250, in ParseArgs
>     self.add_selection_func(self.glob_get_sf(arg, 0))
>   File "/usr/lib/python2.7/dist-packages/duplicity/selection.py", line 436, in glob_get_sf
>     sel_func = self.glob_get_normal_sf(glob_str, include)
>   File "/usr/lib/python2.7/dist-packages/duplicity/selection.py", line 567, in glob_get_normal_sf
>     raise FilePrefixError(glob_str)
>  FilePrefixError: *.lock
>
> The command for the latter is:
>
> duplicity --backend-retry-delay 60 --asynchronous-upload --name TEST --volsize 50 --full-if-older-than 6M --exclude '*.lock' /home/me/Desktop/TEST sftp://[hidden email]/Backup

are you trying to exclude any *.lock file or one at a specific location? ..ede/duply.net

_______________________________________________
Duplicity-talk mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/duplicity-talk