[Borgbackup] borg delete failed
Boris Kirkorowicz
bkborg at kirk.de
Thu May 25 08:06:15 EDT 2023
Hi,
connected via ssh to sfo2205, I tried to delete a Repo using borg
delete. It's answer:
> sfo2205:~ # borg delete /mnt/rs1219a/Boris
> You requested to completely DELETE the following repository *including* 105 archives it contains:
> ------------------------------------------------------------------------------
> Repository ID: 49384c5e96328d2133e8f206cdc2b6107889b16eaeaa702d9db8e63d9b936120
> Location: /mnt/rs1219a/Boris
> ------------------------------------------------------------------------------
> Type 'YES' if you understand this and want to continue: YES
> Local Exception
> Traceback (most recent call last):
> File "/usr/lib64/python3.10/site-packages/borg/archiver.py", line 5213, in main
> exit_code = archiver.run(args)
> File "/usr/lib64/python3.10/site-packages/borg/archiver.py", line 5144, in run
> return set_ec(func(args))
> File "/usr/lib64/python3.10/site-packages/borg/archiver.py", line 183, in wrapper
> return method(self, args, repository=repository, **kwargs)
> File "/usr/lib64/python3.10/site-packages/borg/archiver.py", line 1200, in do_delete
> return self._delete_repository(args, repository)
> File "/usr/lib64/python3.10/site-packages/borg/archiver.py", line 1334, in _delete_repository
> repository.destroy()
> File "/usr/lib64/python3.10/site-packages/borg/repository.py", line 380, in destroy
> shutil.rmtree(self.path)
> File "/usr/lib64/python3.10/shutil.py", line 725, in rmtree
> _rmtree_safe_fd(fd, path, onerror)
> File "/usr/lib64/python3.10/shutil.py", line 658, in _rmtree_safe_fd
> _rmtree_safe_fd(dirfd, fullname, onerror)
> File "/usr/lib64/python3.10/shutil.py", line 664, in _rmtree_safe_fd
> onerror(os.rmdir, fullname, sys.exc_info())
> File "/usr/lib64/python3.10/shutil.py", line 662, in _rmtree_safe_fd
> os.rmdir(entry.name, dir_fd=topfd)
> OSError: [Errno 39] Directory not empty: '20'
>
> Platform: Linux sfo2205 6.1.7-1-default #1 SMP PREEMPT_DYNAMIC Wed Jan 18 11:12:34 UTC 2023 (872045c) x86_64
> Linux: Unknown Linux
> Borg: 1.2.4 Python: CPython 3.10.10 msgpack: 1.0.4 fuse: pyfuse3 3.2.2 [pyfuse3,llfuse]
> PID: 13594 CWD: /root
> sys.argv: ['/usr/bin/borg', 'delete', '/mnt/rs1219a/Boris']
> SSH_ORIGINAL_COMMAND: None
I am not sure what that means. There were a "data" subdir, containing
further subdirs. By now, I solved this by
> rm -r /mnt/rs1219a/Boris
but I like to understand what went wrong with borg delete.
--
Mit freundlichem Gruß Best regards
Kirkorowicz
More information about the Borgbackup
mailing list