-
-
Notifications
You must be signed in to change notification settings - Fork 780
Open
Labels
Description
Some time ago I deleted my ~/.cache directory since my drive was full and a cache, by definition, should just slow things down if it's gone as it's regenerated. If it is the only place that some vital data is stored or this is otherwise not the case, then it isn't a cache and thus does not belong in ~/.cache. Despite this, after deleting it, borg won't backup anymore. Instead it says the following. I tried mkdir -p ~/.cache/borg, which had no effect. Instead, Borg should notice that the cache has been cleared and regenerate whatever it needs.
Creating Backup <censored>
time borg create --progress --compression zstd,10 <censored>:<censored>::<censored> <censored>
Local Exceptionunks cache. Processing archive 2024-06-05-12:00-AM Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/borg/cache.py", line 773, in write_archive_index
with DetachedIntegrityCheckedFile(path=fn_tmp, write=True,
File "/usr/lib/python3/dist-packages/borg/crypto/file_integrity.py", line 211, in __init__
super().__init__(path, write, filename, override_fd)
File "/usr/lib/python3/dist-packages/borg/crypto/file_integrity.py", line 129, in __init__
self.file_fd = override_fd or open(path, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/<censored>/.cache/borg/<censored>/chunks.archive.d/<censored>.tmp'
# more of similiar erors
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/borg/archiver.py", line 5089, in main
exit_code = archiver.run(args)
File "/usr/lib/python3/dist-packages/borg/archiver.py", line 5020, in run
return set_ec(func(args))
File "/usr/lib/python3/dist-packages/borg/archiver.py", line 183, in wrapper
return method(self, args, repository=repository, **kwargs)
File "/usr/lib/python3/dist-packages/borg/archiver.py", line 649, in do_create
with Cache(repository, key, manifest, progress=args.progress,
File "/usr/lib/python3/dist-packages/borg/cache.py", line 383, in __new__
return local()
File "/usr/lib/python3/dist-packages/borg/cache.py", line 374, in local
return LocalCache(repository=repository, key=key, manifest=manifest, path=path, sync=sync,
File "/usr/lib/python3/dist-packages/borg/cache.py", line 496, in __init__
self.close()
File "/usr/lib/python3/dist-packages/borg/cache.py", line 545, in close
self.cache_config.close()
File "/usr/lib/python3/dist-packages/borg/cache.py", line 321, in close
self.lock.release()
File "/usr/lib/python3/dist-packages/borg/locking.py", line 417, in release
self._roster.modify(EXCLUSIVE, REMOVE)
File "/usr/lib/python3/dist-packages/borg/locking.py", line 316, in modify
elements.remove(self.id)
KeyError: ('<censored>', 2013457, 0)