duplicity-talk
[Top][All Lists]
Advanced

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

Re: [Duplicity-talk] Error --excluding '*.lock', but not '**.lock'


From: edgar . soldin
Subject: Re: [Duplicity-talk] Error --excluding '*.lock', but not '**.lock'
Date: Thu, 14 May 2020 11:27:30 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0

On 14.05.2020 04:49, Diagon via Duplicity-talk wrote:
> Date: Wed, 13 May 2020 11:42:00 +0200
> From: address@hidden
>
>> 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'm on Ubuntu 16.04.  This is the last one available.

you can install it manually. e.g. from tgz see 'INSTALL MULTIPLE VERSIONS'
http://duply.net/wiki/index.php/Duply-documentation

>>> 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://address@hidden/Backup
>
>> are you trying to exclude any *.lock file or one at a specific location?
>
> Any *.lock on the top level;

ok, then '*.lock' is fine

>but in any case my point is the error.  It fails with one star and works with 
>two.

file selection was reworked a while ago. i'll check if 0.8 still errs out with 
this exclusion set.

thanks.. ede/duply.net



reply via email to

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