Skip to content

Implement mid-file checkpoints? #220

@Sedins

Description

@Sedins

Unable to resume backup which is mentioned in the faq https://attic-backup.org/faq.html

Running Attic 0.14 installed with pip3 on Ubuntu 14.04 LTS 64bit

  1. Open connection to SSH (in my case a Synology DS411j NAS):
    sshfs [email protected]:/homes/admin/backup /mnt/backup
  2. Start a long-running backup job on Ubuntu to an initialized remote repository over SSHFS:
    attic create -v -s -c 30 /mnt/backup/test3.attic::test-6 /mnt/public/testar
  3. Wait for a minimum of 5 minutes (or specify a shorter period of time with -c parameter above)
  4. Reboot NAS
  5. Attic crashes with the error message below
  6. Check backup size on NAS which has increased: du -d 1 -h .
  7. Searching for .snapshot doesn't result in any hits, neither at source or destination
  8. Re-opening connection and starting the backup again results in uploading all data again

Thankful for swift response as this functionality really is important to me when doing long backup sessions. If more information is needed I'll be glad to recreate and send it over. Thanks in advance.

Regards,
Stefan

Enter passphrase for /mnt/backup/test3.attic::test-6:
/mnt/public/testar
/mnt/public/testar/0.txt
/mnt/public/testar/Try 1
/mnt/public/testar/Try 1/Try.iso
attic: /mnt/public/testar/Try 1/Try.iso: [Errno 107] Transport endpoint is not connected
/mnt/public/testar/Try 1/Try.txt
attic: /mnt/public/testar/Try 1/Try.txt: [Errno 107] Transport endpoint is not connected
/mnt/public/testar/Try 2 - Trys
Traceback (most recent call last):
File "/usr/local/bin/attic", line 3, in
main()
File "/usr/local/lib/python3.4/dist-packages/attic/archiver.py", line 727, in main
exit_code = archiver.run(sys.argv[1:])
File "/usr/local/lib/python3.4/dist-packages/attic/archiver.py", line 717, in run
return args.func(args)
File "/usr/local/lib/python3.4/dist-packages/attic/archiver.py", line 128, in do_create
self._process(archive, cache, args.excludes, args.exclude_caches, skip_inodes, path, restrict_dev)
File "/usr/local/lib/python3.4/dist-packages/attic/archiver.py", line 177, in _process
os.path.join(path, filename), restrict_dev)
File "/usr/local/lib/python3.4/dist-packages/attic/archiver.py", line 169, in _process
archive.process_item(path, st)
File "/usr/local/lib/python3.4/dist-packages/attic/archive.py", line 365, in process_item
self.add_item(item)
File "/usr/local/lib/python3.4/dist-packages/attic/archive.py", line 173, in add_item
self.write_checkpoint()
File "/usr/local/lib/python3.4/dist-packages/attic/archive.py", line 177, in write_checkpoint
self.save(self.checkpoint_name)
File "/usr/local/lib/python3.4/dist-packages/attic/archive.py", line 200, in save
self.repository.commit()
File "/usr/local/lib/python3.4/dist-packages/attic/repository.py", line 129, in commit
self.io.write_commit()
File "/usr/local/lib/python3.4/dist-packages/attic/repository.py", line 574, in write_commit
self.close_segment()
File "/usr/local/lib/python3.4/dist-packages/attic/repository.py", line 580, in close_segment
os.fsync(self._write_fd)
OSError: [Errno 107] Transport endpoint is not connected
Exception ignored in: <bound method Repository.del of <attic.repository.Repository object at 0x7f1e00a24ef0>>
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/attic/repository.py", line 61, in del
self.close()
File "/usr/local/lib/python3.4/dist-packages/attic/repository.py", line 121, in close
self.io.close()
File "/usr/local/lib/python3.4/dist-packages/attic/repository.py", line 406, in close
self.fds.pop(segment).close()
OSError: [Errno 107] Transport endpoint is not connected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions