Borg: Difference between revisions

From DWIKI
mNo edit summary
mNo edit summary
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Borg backup
Borg backup


=Links=
= Links =
*[https://borgbackup.readthedocs.io/en/stable/ Homepage]
 
*[https://github.com/borgbackup/borg/issues/392 support keyring for passphrase storage]
*[https://borgbackup.readthedocs.io/en/stable/ Homepage]  
*[https://ci.appveyor.com/project/borgbackup/borg/build/artifacts Borg on windows]
*[https://github.com/borgbackup/borg/issues/392 support keyring for passphrase storage]  
*[https://notabug.org/demure/scripts/src/master/borg_wrap.sh A borg script]
*[https://ci.appveyor.com/project/borgbackup/borg/build/artifacts Borg on windows]  
*[https://notabug.org/demure/scripts/src/master/borg_wrap.sh A borg script]  
 
 


 


= FAQ =
= FAQ =
Line 22: Line 27:
 
 


== Exception: FD exception occurred ==
 
 
== Error messages ==
 
=== BlockingIOError: [Errno 11] Resource temporarily unavailable ===
 
???
 
=== Exception: FD exception occurred ===


Probably running borg on cygwin, could be ssh key issue. Try
Probably running borg on cygwin, could be ssh key issue. Try
Line 32: Line 45:
 
 


== Cache, or information obtained from the security directory is newer than repository - this is either an attack or unsafe (multiple repos with same ID) ==
=== Cache, or information obtained from the security directory is newer than repository - this is either an attack or unsafe (multiple repos with same ID) ===


Something broke during a backup, try (re)moving ~/.config/borg/security/<id> and ~/.cache/borg/<id>.
Something broke during a backup, try (re)moving ~/.config/borg/security/<id> and ~/.cache/borg/<id>.
Line 38: Line 51:
&nbsp;
&nbsp;


== Prune: Chunk ID missing from chunks index, corrupted chunks index - aborting transaction. ==
=== Prune: Chunk ID missing from chunks index, corrupted chunks index - aborting transaction. ===


Try
Try
Line 44: Line 57:
  borg check ( --repair )
  borg check ( --repair )


== ValueError: stats_against: key contained in self but not in master_index. ==
=== ValueError: stats_against: key contained in self but not in master_index. ===


Try
Try
Line 50: Line 63:
  borg check ( --repair )
  borg check ( --repair )


== BrokenPipeError: [Errno 32] Broken pipe ==
=== BrokenPipeError: [Errno 32] Broken pipe ===


== Rename repository ==
== Rename repository ==
Line 61: Line 74:


  borg extract server:repo sh:path/to/files.*
  borg extract server:repo sh:path/to/files.*
== 4 orphaned objects found! ==

Revision as of 11:51, 23 September 2021

Borg backup

Links

 

 

FAQ

Remote: Using a pure-python msgpack! This will result in lower performance

On CentOS: try installing python34-msgpack?

 

Connection closed by remote host. Is borg working on the server?

maybe you're using '@borgserver' instead of 'user@borgserver' ?

 

 

Error messages

BlockingIOError: [Errno 11] Resource temporarily unavailable

???

Exception: FD exception occurred

Probably running borg on cygwin, could be ssh key issue. Try

BORG_RSH="ssh -vvv" borg ...

Also check your quotes

 

Cache, or information obtained from the security directory is newer than repository - this is either an attack or unsafe (multiple repos with same ID)

Something broke during a backup, try (re)moving ~/.config/borg/security/<id> and ~/.cache/borg/<id>.

 

Prune: Chunk ID missing from chunks index, corrupted chunks index - aborting transaction.

Try

borg check ( --repair )

ValueError: stats_against: key contained in self but not in master_index.

Try

borg check ( --repair )

BrokenPipeError: [Errno 32] Broken pipe

Rename repository

  • On server: rename repository
  • On client: change previous_location in ~/.cache/borg/*.config
  • BORG_RELOCATED_REPO_ACCESS_IS_OK=yes

Extract with pattern

borg extract server:repo sh:path/to/files.*

4 orphaned objects found!