[Borgbackup] Backup fails with -> ValueError: time data '2017-09-11T23:54:21' does not match format '%Y-%m-%dT%H:%M:%S.%f'

Niels nift at maclisp.org
Fri Sep 29 08:38:25 EDT 2017


Marian Beermann <public at enkore.de> writes:

> https://github.com/borgbackup/borg/issues/2994#issuecomment-331842939

Thanks for the pointer. I've removed the ".%f" in helpers.py as
described in the issue, on both the client and server.

But unfortunately I get another error:

Traceback (most recent call last):
  File "/usr/local/src/borg-env/lib/python3.5/site-packages/borg/archiver.py", line 2168, in main
    exit_code = archiver.run(args)
  File "/usr/local/src/borg-env/lib/python3.5/site-packages/borg/archiver.py", line 2104, in run
    return set_ec(func(args))
  File "/usr/local/src/borg-env/lib/python3.5/site-packages/borg/archiver.py", line 107, in wrapper
    return method(self, args, repository=repository, **kwargs)
  File "/usr/local/src/borg-env/lib/python3.5/site-packages/borg/archiver.py", line 331, in do_create
    create_inner(archive, cache)
  File "/usr/local/src/borg-env/lib/python3.5/site-packages/borg/archiver.py", line 304, in create_inner
    read_special=args.read_special, dry_run=dry_run)
  File "/usr/local/src/borg-env/lib/python3.5/site-packages/borg/archiver.py", line 380, in _process
    read_special=read_special, dry_run=dry_run)
  File "/usr/local/src/borg-env/lib/python3.5/site-packages/borg/archiver.py", line 380, in _process
    read_special=read_special, dry_run=dry_run)
  File "/usr/local/src/borg-env/lib/python3.5/site-packages/borg/archiver.py", line 380, in _process
    read_special=read_special, dry_run=dry_run)
  File "/usr/local/src/borg-env/lib/python3.5/site-packages/borg/archiver.py", line 380, in _process
    read_special=read_special, dry_run=dry_run)
  File "/usr/local/src/borg-env/lib/python3.5/site-packages/borg/archiver.py", line 361, in _process
    status = archive.process_file(path, st, cache, self.ignore_inode)
  File "/usr/local/src/borg-env/lib/python3.5/site-packages/borg/archive.py", line 722, in process_file
    self.add_item(item)
  File "/usr/local/src/borg-env/lib/python3.5/site-packages/borg/archive.py", line 295, in add_item
    self.write_checkpoint()
  File "/usr/local/src/borg-env/lib/python3.5/site-packages/borg/archive.py", line 299, in write_checkpoint
    self.save(self.checkpoint_name)
  File "/usr/local/src/borg-env/lib/python3.5/site-packages/borg/archive.py", line 333, in save
    self.manifest.write()
  File "/usr/local/src/borg-env/lib/python3.5/site-packages/borg/helpers.py", line 311, in write
    prev_ts = datetime.strptime(self.timestamp, "%Y-%m-%dT%H:%M:%S")
  File "/usr/lib/python3.5/_strptime.py", line 510, in _strptime_datetime
    tt, fraction = _strptime(data_string, format)
  File "/usr/lib/python3.5/_strptime.py", line 346, in _strptime
    data_string[found.end():])
ValueError: unconverted data remains: .061399


Niels


More information about the Borgbackup mailing list