[Borgbackup] recommended check option

Boris Kirkorowicz bkborg at kirk.de
Tue May 9 04:07:44 EDT 2023


Hi,
the backup job running since January has finished now.

I split the data to multiple repos. Two of the repos ended with rc=1:
> terminating with warning status, rc 1

I guess this is due to an interruption of the IP connect to the backup 
disks yesterday:

> [...]
> /home/boris/public_html/.directory: read: [Errno 107] Transport endpoint is not connected
> Local Exception
> Traceback (most recent call last):
>   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 675, in do_create
>     create_inner(archive, cache, fso)
>   File "/usr/lib64/python3.10/site-packages/borg/archiver.py", line 629, in create_inner
>     archive.save(comment=args.comment, timestamp=args.timestamp)
>   File "/usr/lib64/python3.10/site-packages/borg/archive.py", line 613, in save
>     self.items_buffer.flush(flush=True)
>   File "/usr/lib64/python3.10/site-packages/borg/archive.py", line 385, in flush
>     self.chunks.append(self.write_chunk(chunk))
>   File "/usr/lib64/python3.10/site-packages/borg/archive.py", line 401, in write_chunk
>     id_, _, _ = self.cache.add_chunk(self.key.id_hash(chunk), chunk, self.stats, wait=False)
>   File "/usr/lib64/python3.10/site-packages/borg/cache.py", line 951, in add_chunk
>     self.repository.put(id, data, wait=wait)
>   File "/usr/lib64/python3.10/site-packages/borg/repository.py", line 1230, in put
>     segment, offset = self.io.write_put(id, data)
>   File "/usr/lib64/python3.10/site-packages/borg/repository.py", line 1643, in write_put
>     fd.write(b''.join((crc, header, id, data)))
>   File "/usr/lib64/python3.10/site-packages/borg/platform/base.py", line 174, in write
>     self.f.write(data)
> OSError: [Errno 107] Transport endpoint is not connected
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
>   File "/usr/lib64/python3.10/site-packages/borg/platform/base.py", line 194, in close
>     self.sync()
>   File "/usr/lib64/python3.10/site-packages/borg/platform/base.py", line 182, in sync
>     self.f.flush()
> OSError: [Errno 107] Transport endpoint is not connected
> 
> During handling of the above exception, another exception occurred:
> 
> OSError: [Errno 107] Transport endpoint is not connected
> 
> During handling of the above exception, another exception occurred:
> 
> 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 168, in wrapper
>     with repository:
>   File "/usr/lib64/python3.10/site-packages/borg/repository.py", line 214, in __exit__
>     self.close()
>   File "/usr/lib64/python3.10/site-packages/borg/repository.py", line 476, in close
>     self.io.close()
>   File "/usr/lib64/python3.10/site-packages/borg/repository.py", line 1313, in close
>     self.close_segment()
>   File "/usr/lib64/python3.10/site-packages/borg/repository.py", line 1468, in close_segment
>     fd.close()
>   File "/usr/lib64/python3.10/site-packages/borg/platform/base.py", line 196, in close
>     self.f.close()
> OSError: [Errno 107] Transport endpoint is not connected
> 
> 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: 29494  CWD: /root
> sys.argv: ['/usr/bin/borg', 'create', '-v', '--stats', '--show-rc', '-C', 'lzma,6', '/mnt/rs1219a/Boris::{now:%Y-%m-%d_%H-%M}', '/home/boris']
> SSH_ORIGINAL_COMMAND: None
> 
> terminating with error status, rc 2
> Exception ignored in: <function Repository.__del__ at 0x7f8a1b505630>
> Traceback (most recent call last):
>   File "/usr/lib64/python3.10/site-packages/borg/repository.py", line 189, in __del__
>   File "/usr/lib64/python3.10/site-packages/borg/repository.py", line 476, in close
>   File "/usr/lib64/python3.10/site-packages/borg/repository.py", line 1314, in close
>   File "/usr/lib64/python3.10/site-packages/borg/lrucache.py", line 50, in clear
>   File "/usr/lib64/python3.10/site-packages/borg/repository.py", line 1320, in _close_fd
> OSError: [Errno 107] Transport endpoint is not connected
> 2023-05-08_14-13-19: Datensicherung Nr. 3 mit borgbackup beendet (2) mit RC: 2


Now I wonder what is to do best. First thing might be

borg check /mnt/rs1219a/Boris

but there are some options mentioned in the docs that I do not 
understand, resp. their meaning. What is the recommended procedure here?




-- 
Mit freundlichem Gruß                                 Best regards
                                  Kirkorowicz


More information about the Borgbackup mailing list