borgbackupserver icon indicating copy to clipboard operation
borgbackupserver copied to clipboard

borg restore method

Open darkfritz2 opened this issue 3 months ago • 5 comments

Description

Hello, so i've been playing around with borg and simulated, what happens if the borg server VM gets destroyed, what to do on how to remake everything. The only thing i took into consideration was clients that have no further encryption. because then i'd need to save all the passkeys somewhere.

the issue is that after restoration, the NFS storage (though saved in the database) can't access the data, thus i can't check the repos and rebuild the catalog.

Use Case

i installed borg put all the clients put the NFS mount as a local storage destroyed the borg server reinstall everything restore from the /var/bbs/backups/

from there it should work. but it doesnt.

Alternatives Considered

as alternative:

i installed borg put all the clients put the NFS mount as a local storage saved all the files from: /var/bbs/home/ /var/bbs/.ssh-host-keys/ /var/bbs/backups/ /etc/bbs/allowed-storage-paths

destroyed the borg server reinstall everything restored: first from /var/bbs/backups/ then: /var/bbs/home/ /var/bbs/.ssh-host-keys/ /etc/bbs/allowed-storage-paths

now i see old backups, can check the repo and cataloge all the old backups.

darkfritz2 avatar Aug 17 '26 12:08 darkfritz2

when you say It doesn't work can you be more specific? Kind of hard to debug from that comment.

marcpope avatar Aug 17 '26 13:08 marcpope

Here are the errors that i got:

Catalog rebuild failed: 2 errors: Archive plan5-2026-08-16_19-57-34: exit code 1; Archive plan5-2026-08-17_05-00-28: exit code 1

Or another error:

Check job #116 queued for repository "nfs-cyberpanel" Aug 16, 2026 3:12:43 PM Job #116 (repo_check) sent to server queue Aug 16, 2026 3:13:01 PM Repo_check command: 'sudo' 'bbs-ssh-helper' 'borg-cmd' 'bbs-cyberpanel-practica' '-' 'check' '--verbose' '/backup/4/nfs-cyberpanel' Aug 16, 2026 3:13:01 PM Server-side repo_check job #116 failed: Repository /backup/4/nfs-cyberpanel does not exist.

My guess is that the NFS storage (which in my case is default), is not seen if i’m not doing all the steps.

The NFS storage is in the webui (due to the DB restore), but it can’t do anything with it because after you reinstall borg server, the /etc/bbs/allowed-storage-paths doesnt exist. It gets created after i re-enter into the webui as storage the NFS storage.

Now, /var/bbs/home/ and /var/bbs/.ssh-host-keys/ , i don’t know if it has to be as well, because these folders don’t get backed up as well.

From: Marc Pope @.> Sent: Monday, August 17, 2026 4:19 PM To: marcpope/borgbackupserver @.> Cc: darkfritz2 @.>; Author @.> Subject: Re: [marcpope/borgbackupserver] borg restore method (Issue #416)

https://avatars.githubusercontent.com/u/11093841?s=20&v=4 marcpope left a comment (marcpope/borgbackupserver#416) https://github.com/marcpope/borgbackupserver/issues/416#issuecomment-5316592867

when you say It doesn't work can you be more specific? Kind of hard to debug from that comment.

— Reply to this email directly, view it on GitHub https://github.com/marcpope/borgbackupserver/issues/416?email_source=notifications&email_token=ACISIK7RXZBX2XZES52VZP35KMA3VA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMZRGY2TSMRYGY32M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-5316592867 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ACISIK2GBQUF6ZOAEA25FWD5KMA3VAVCNFSNUABGKJSXA33TNF2G64TZHMYTCNBUHAYDKNBWHA5US43TOVSTWNJRG4YTMMZYGM2DDILWAI . Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS https://github.com/notifications/mobile/ios/ACISIK6HEWKD4SKBRHWOKKD5KMA3VA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMZRGY2TSMRYGY32M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG and Android https://github.com/notifications/mobile/android/ACISIK4D3XEYVGNZYHXKPQD5KMA3VA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMZRGY2TSMRYGY32M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA . Download it today! You are receiving this because you authored the thread. https://github.com/notifications/beacon/ACISIK2E42BCW2DHHQYRZZD5KMA3VBFCNFSM6AAAAAC5TSB7TGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTYAAAAACPHEYTR2M4TFMFZW63VGMF2XI2DPOI.gif Message ID: @.*** @.***> >

darkfritz2 avatar Aug 17 '26 14:08 darkfritz2

It would be a restore function where you can upload a backup and then restore from it from there.

theborg72 avatar Aug 18 '26 18:08 theborg72

i do it manually now because i found this. but if borg needs other files as well, then the backup function should include those folders as well :)

darkfritz2 avatar Aug 18 '26 21:08 darkfritz2

The restore function puts the data back how it was in the database, then you go to the Repo's page and re-import the lost repo and it should re-link it back.

marcpope avatar Aug 21 '26 19:08 marcpope