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: Diagon
Subject: Re: [Duplicity-talk] Error --excluding '*.lock', but not '**.lock'
Date: Wed, 13 May 2020 19:49:22 -0700
User-agent: Zoho Mail

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.

>> 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; but in any case my point is the error.  It fails 
with one star and works with two.

/D.



reply via email to

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