Browsed by
Category: Borg

Clear all .checkpoints in a Borg Repo

Clear all .checkpoints in a Borg Repo

Checkpoints are made every 5 minutes by default so that if the backup is interrupted, most of you’ve uploaded so far is still up there. From the creator of Borg: 9:54 PM (ThomasWaldmann) if a backup is interrupted, borg will leave a .checkpoint archive behind. 9:54 PM (ThomasWaldmann) it makes these archives every , default is 5 minutes 9:55 PM (ThomasWaldmann) these archives reference all chunks that were transmitted up to its creation time. 9:56 PM (ThomasWaldmann) so, if you…

Read More Read More

Setup Borg Backup Server on Rsync.net

Setup Borg Backup Server on Rsync.net

There is a great coupon for borg and attic users. Which reduces the price to $0.03/GB/Month but without the same level of support the give normally. To run a command on rsync.net we need to use ssh -t as we are not given an interactive session. We can put the commands we want to run at the end of the ssh command. Run ssh -t borg-server pwd so we can find what full path looks like. It should look something…

Read More Read More

Retrieve File From Borg Backup

Retrieve File From Borg Backup

I need to retrieve a music file who’s hash has changed on my laptop and I’m not sure why. I know the exact path but lets pretend I don’t: borg list borg:borg-repo/ Which lists all the backups I’ve made, I want the latest music one which happens to be Music-2016-04-27 I can use borg list borg:borg-repo/::Music-2016-04-27 to list all files in that backup. The file I want is called 03 Liberty Bell.m4a borg list borg:borg-repo/::Music-2016-04-27 | grep “03 Liberty Bell.m4a”…

Read More Read More

Install Borg Backup from Source on Mac OS X

Install Borg Backup from Source on Mac OS X

Due to Borg Issue #913 brew cask install borgbackup is no longer updated with the latest version. However don’t fear I’ve written this guide on installing Borg Backup from Source on Mac OS X. The easiest way is to save this script, chmod u+x install-borg.sh and then ./install-borg.sh in the directory you wish. I have a directory ~/backup-system with notes and scripts. You will need Homebrew. This script can be used to upgrade Borg. Save this script as upgrade-borg.sh, place…

Read More Read More

Borg: Failed to create/acquire the lock /lock.exclusive (timeout).

Borg: Failed to create/acquire the lock /lock.exclusive (timeout).

borg break-lock [repo] Thanks to lfam on #borgbackup You need to make sure there are no other backups running, and then use borg break-lock as described in the manual: https://borgbackup.readthedocs.org/en/latest/internals.html?highlight=break-lock#lock-files You should check ps aux or just restart to ensure borg is not still running

Borg Correctly HMACs IV + Ciphertext

Borg Correctly HMACs IV + Ciphertext

https://github.com/borgbackup/borg/blob/a2e356dccf697374bef1dfa487465e3c23f5e624/borg/key.py#L134 [python] data = b”.join((self.enc_cipher.iv[8:], self.enc_cipher.encrypt(data))) hmac = HMAC(self.enc_hmac_key, data, sha256).digest() [/python] ✔ Authenticates IV ✔ Encrypt-then-MAC I had a nice table about why Encrypt-then-MAC is the correct way, but I can’t find it. :(

Setup Borg Backup Server on Mac OS X

Setup Borg Backup Server on Mac OS X

See my other post on setting up the client side See my other post on how to update casks in Homebrew. Due to Borg Issue #913 brew cask install borgbackup is no longer updated with the latest version. However don’t fear I’ve written a guide on installing Borg Backup from Source on Mac OS X. Create a new user borg using System Preferences mkdir ~/.ssh; Make a backup directory: eg. cd /Volumes/Backups/ mkdir borg sudo chown borg borg sudo chmod…

Read More Read More

Can I move Borg Backup Files?

Can I move Borg Backup Files?

Solved: Yes you can! Yes, you could just copy all the files. Make sure you do that while no backup is running. https://github.com/borgbackup/borg/blob/master/docs/internals.rst#config-file: …It will not change if you move the repository around so you can make a local transfer then decide to move the repository to another (even remote) location at a later time. Just starting out with Borg (I only ask because with Arq moving files around actually broke backups) but can move backed up files to other…

Read More Read More