duplicity-team team mailing list archive
-
duplicity-team team
-
Mailing list archive
-
Message #01141
Re: [Question #192331]: TypeError in dup_time.py with remove-older-than
On Sun, Apr 1, 2012 at 10:50 AM, Derek Kozikowski <
question192331@xxxxxxxxxxxxxxxxxxxxx> wrote:
> New question #192331 on Duplicity:
> https://answers.launchpad.net/duplicity/+question/192331
>
> Greetings,
> I am attempting to clean out some of my older backups using the duplicity
> remove-older-than command, but I'm getting an exception. I am using Ubuntu
> 10.04 and duplicity 0.6.18. The command and stack trace follow:
>
>
> $ sudo duplicity remove-older-than 1Y --force "file:///media/EZ BUS
> DT/MachineName/DuplicityBackups/home_backup"
> Traceback (most recent call last):
> File "/usr/local/bin/duplicity", line 1236, in <module>
> with_tempdir(main)
> File "/usr/local/bin/duplicity", line 1229, in with_tempdir
> fn()
> File "/usr/local/bin/duplicity", line 1115, in main
> action = commandline.ProcessCommandLine(sys.argv[1:])
> File "/usr/lib/python2.6/dist-packages/duplicity/commandline.py", line
> 975, in ProcessCommandLine
> args = parse_cmdline_options(cmdline_list)
> File "/usr/lib/python2.6/dist-packages/duplicity/commandline.py", line
> 592, in parse_cmdline_options
> globals.remove_time = dup_time.genstrtotime(arg)
> File "/usr/lib/python2.6/dist-packages/duplicity/dup_time.py", line 278,
> in genstrtotime
> return override_curtime - intstringtoseconds(timestr)
> TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
>
> I tried replacing 1Y with 365D with the same result. Is this something as
> silly as the order of my options, or a real bug?
>
> Thanks!
Did you use '365 D' or '365D'? '1 Y' would not work because of the space.
See TIME FORMATS in the man page.
...Ken
References