Yves Goergen wrote:
I now have another problem restoring the data. The main partition was
restored normally afaict. But the boot partition, mounted at /boot, was
not restored at all. In the first pass, the directory was just left
empty, logging the error "file exists" for "boot". When I retry with
duplicity ... --file-to-restore boot ... /mnt/boot
it gives me this output:
NcFTP version is 3.2.1
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Wed Sep 8 23:11:21 2010
Error '[Errno 16] Device or resource busy: '/mnt/boot'' processing .
Error '[Errno 17] File exists' processing .
When I add the option --ignore-errors, it fails:
Running in 'ignore errors' mode due to --ignore-errors; please re-consider if this was not intended
Traceback (most recent call last):
File "./duplicity", line 1239, in <module>
with_tempdir(main)
File "./duplicity", line 1232, in with_tempdir
fn()
File "./duplicity", line 1118, in main
action = ""
File "/usr/lib/python2.5/site-packages/duplicity/commandline.py", line 881, in ProcessCommandLine
args = parse_cmdline_options(cmdline_list)
File "/usr/lib/python2.5/site-packages/duplicity/commandline.py", line 455, in parse_cmdline_options
(options, args) = parser.parse_args()
File "/usr/lib/python2.5/optparse.py", line 1385, in parse_args
stop = self._process_args(largs, rargs, values)
File "/usr/lib/python2.5/optparse.py", line 1425, in _process_args
self._process_long_opt(rargs, values)
File "/usr/lib/python2.5/optparse.py", line 1500, in _process_long_opt
option.process(opt, value, values, self)
File "/usr/lib/python2.5/optparse.py", line 782, in process
self.action, self.dest, opt, value, values, parser)
File "/usr/lib/python2.5/site-packages/duplicity/commandline.py", line 169, in take_action
self, action, dest, opt, value, values, parser)
File "/usr/lib/python2.5/optparse.py", line 802, in take_action
self.callback(self, opt, value, parser, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/duplicity/commandline.py", line 318, in <lambda>
setattr(p.values, o.dest, True)))
TypeError: attribute name must be string, not 'NoneType'
Thanks to Michael Terry:
To fix this, change the line to:
setattr(p.values, "ignore_errors", True)))
I'll get it in to the 0.6.10 release.
...Ken
|