Borg: Difference between revisions

From DWIKI
mNo edit summary
 
(18 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://ci.appveyor.com/project/borgbackup/borg/build/artifacts Borg on windows]  
*[https://notabug.org/demure/scripts/src/master/borg_wrap.sh A borg script]
*[https://notabug.org/demure/scripts/src/master/borg_wrap.sh A borg script]
*[https://github.com/borgbackup/borg/issues/6602 About upgrading to borg 2]
*[http://www.elho.net/dev/borg/ Someone did some benchmarking]


=Tools=
*[ https://vorta.borgbase.com/ Vorta, a borg backup GUI for Linux and MacOS]


=HOWTO=
== 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.*
==Export key==


= FAQ =
= FAQ =
== 4 orphaned objects found! ==
A job for borg check
==Enter passphrase for key==
probably means the BORG_PASSPHRASE


== Remote: Using a pure-python msgpack! This will result in lower performance ==
== Remote: Using a pure-python msgpack! This will result in lower performance ==
Line 17: Line 42:


 
 
'user@borgserver' ?


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


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


 
== Error messages ==
 
=== Connection closed by remote host. Is borg working on the server? ===
Usually ssh key problem of it means borg is not installed on the server
 
 
 
===Failed to create/acquire the lock===
Usually the 'timeout' bit is relevant. Just try again later.
Does the backup or source happen to be pretty big?
 
=== BlockingIOError: [Errno 11] Resource temporarily unavailable ===
 
windows?




== Error messages ==
===Corrupted segment reference count - corrupted index or hints===
===BlockingIOError: [Errno 11] Resource temporarily unavailable===
For some reason it might help to run
???
borg check --repository-only


=== Exception: FD exception occurred ===
=== Exception: FD exception occurred ===
Line 36: Line 75:


Also check your quotes
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) ===
=== Cache, or information obtained from the security directory is newer than repository - this is either an attack or unsafe (multiple repos with same ID) ===
Line 43: Line 80:
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>.


&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
borg check ( --repair )


  borg check ( --repair )
If check finds no problem, delete cache:
  mv ~/.cache/borg ~/.cache/borg_corrupted


=== ValueError: stats_against: key contained in self but not in master_index. ===
=== ValueError: stats_against: key contained in self but not in master_index. ===
Line 59: Line 95:
=== BrokenPipeError: [Errno 32] Broken pipe ===
=== BrokenPipeError: [Errno 32] Broken pipe ===


== Rename repository ==


*On server: rename repository
===Remote: Write failed: Broken pipe===
*On client: change previous_location in ~/.cache/borg/*.config
*BORG_RELOCATED_REPO_ACCESS_IS_OK=yes


== Extract with pattern ==
===The 'borgbackup==1.1.3' distribution was not found and is required by the application===
Incomplete install?


borg extract server:repo sh:path/to/files.*
==Deduplicated size==
For single archive: total size of unique chunks for this archive


== 4 orphaned objects found! ==
[[Category:Backup]]

Latest revision as of 13:46, 11 January 2024

Borg backup

Links

Tools

HOWTO

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.*


Export key

FAQ

4 orphaned objects found!

A job for borg check


Enter passphrase for key

probably means the BORG_PASSPHRASE

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

On CentOS: try installing python34-msgpack?

  'user@borgserver' ?

 

 

Error messages

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

Usually ssh key problem of it means borg is not installed on the server


Failed to create/acquire the lock

Usually the 'timeout' bit is relevant. Just try again later. Does the backup or source happen to be pretty big?

BlockingIOError: [Errno 11] Resource temporarily unavailable

windows?


Corrupted segment reference count - corrupted index or hints

For some reason it might help to run

borg check --repository-only

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 )

If check finds no problem, delete cache:

mv ~/.cache/borg ~/.cache/borg_corrupted

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

Try

borg check ( --repair )

BrokenPipeError: [Errno 32] Broken pipe

Remote: Write failed: Broken pipe

The 'borgbackup==1.1.3' distribution was not found and is required by the application

Incomplete install?

Deduplicated size

For single archive: total size of unique chunks for this archive