[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
Wed Sep 27 17:08:03 EDT 2017


Hi list

I get this error on one of my repositories:


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.%f")
  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 343, in _strptime
    (data_string, format))
ValueError: time data '2017-09-11T23:54:21' does not match format '%Y-%m-%dT%H:%M:%S.%f'

Platform: Linux desktop 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u3 (2017-08-06) x86_64 
Linux: debian 9.1 
Borg: 1.0.11  Python: CPython 3.5.3
PID: 16352  CWD: /home/niels/borg
sys.argv: ['/usr/local/bin/borg', 'create', '-v', '--debug', '--stats', '--progress', '--compression', 'zlib,6', '--one-file-system', 'niels at nas:/backups/borg::bigdisk-{now:%Y-%m-%dT%H:%M:%S}', '/media/niels/bigdisk']
SSH_ORIGINAL_COMMAND: None

Any ideas on how to fix/debug this?

br
Niels



More information about the Borgbackup mailing list