[Borg & Borg Server] Deduplicated, encrypted and remote backups

Hi,

I just push a draft for 2 borgs apps.

One to offer storage and the other to shedule a backup.

I didn’t test it , i has just write this code (so it’s in progress and not working):

8 Likes

Update:
I had fixes all errors i found.

I think it’s now working, I need test from community.

The README is here:

2 Likes

Those 2 apps has been updated to fix the “borg.timer” issue in yunohost services.

Another issue is still known about the frequency. Frequency with space will fail.

4 Likes

A new testing version is available for test until 24th may. It removes backports to avoid to break yunohost instance (new package rules).

1 Like

Hey,

Seems like nobody has problem with it and we’re the 28th today, don’t forget to merge testing in master :wink:

1 Like

New borg and borgserver version are here :slight_smile:
ChangeLog:

  • borg version is now pinned to 1.1.10 to avoid to go on 1.2 accidentally
  • no backports anymore, just pip install method (following yunohost packaging rules)
1 Like

So, how do you use these? I’m guessing that you install the “storage offer” app on one Yunohost server, and then the “schedule backup” app on the app you want backed up and then edit the schedule backup app to point to the domain of the first server. Is this right? Can the server that’s storing the backup access the data? I’m wondering if two people on this forum who don’t really know each other could offer to back up each others servers, without being able to read each others data?

Backup are encrypted so you don’t specially need to know the other person (until the crypto will be broken).

You need first to install borg_ynh, it 's the “schedule backup” app. You need to indicate on which server you want to backup, and it will give you a key.

After that, you ask for your friend to install borgserver_ynh (the “storage offer” app) on his/her server. And he/she fill withj the key and the user, and that’s it.

1 Like

A new version i out for the borg_ynh package it fix 2 issues.

Thanks to autra bug reporting i have fixed several issues in borgserver_ynh package.
Upgrade should be available tomorrow in official list

1 Like

A new version is out for compatibility with 3.8

1 Like

Hi there,
I have a question about restoring a backup that was made by Borg.

Here is what I have in my repo :
auto_etherpad_mypads_11_08_20_00:02 Tue, 2020-08-11 01:02:31 [6b77949969a210ec0a52a1ebca663af73d14cbcffb6400c48ad84b772b35d36c]
auto_hotspot_11_08_20_00:03 Tue, 2020-08-11 01:03:22 [bdbe825129cb55f5105b950fbb5cd71071ec6da9172e2200aea1e85a172fe534]
auto_monitorix_11_08_20_00:03 Tue, 2020-08-11 01:03:53 [0ef3c82e75bb7a9cc37fee3215ab114b501d12ba6290de6832dd129fafc3dc4b]
auto_nextcloud_11_08_20_00:04 Tue, 2020-08-11 01:04:55 [2b728c2711bc44db84310e0e5211da856a486747f81e31cb41bcdbc9358778f7]
auto_rainloop_11_08_20_00:09 Tue, 2020-08-11 01:09:40 [cc88a4697ee6ec39c6b7f8203133d0de3eca0508080c2411a9f8859c677d1bd7]
auto_shellinabox_11_08_20_00:10 Tue, 2020-08-11 01:10:09 [eb5c3ae7730ac3e944f04f43aa912924d2d4d66925dc84f92065553fac3e957d]

Are thos folders equivalent to a Yunohost backup (with the backup tool of Yunohost) ?

Thanks !

Bonjour @charly,

Non les sauvegardes yunohost sont des archives .tar.gz. Tu peux exporter tes sauvegardes Borg avec la commande borg export-tar /path/to/repo::your_backup your_backup_yunohost.tar.gz

L’archive tar.gz crée sera elle compatible avec le système de backup de yunohost.

https://borgbackup.readthedocs.io/en/stable/usage/tar.html

3 Likes

U wot m8 ? Are you a wizard ?

@ljf : did you know about this ?

2 Likes

Borg is really the future for Ynh when it concerns good backup policy, I think. Remote often best (in case you get burgled or your house burns down).

If I may suggest an idea for future development: I can imagine that for usability it would be simpler if you would only have one app that both handles backing up and offering space to others. So merging the two apps eventually. This would probably also foster a better balance in people offering space and wanting to use space of others. Does this make sense?

3 Likes

Yes i know it and i described it in a topic of this forum. But i just discovered that it’s not written in the markdown documentation of borg_ynh ><

2 Likes

Well, it’s super very cool indeed.
We could even open a topic for people looking for / offering remote storage for their backups.

3 Likes

Just to let you know that I just tried the borg export-tar /path/to/repo::your_backup your_backup_yunohost.tar.gz command and then restored the file with the Yunohost Backup / restore system, and it works like a charm.

2 Likes

Does this mean that Borg could be built into the ynh core Backup functionality? :slight_smile:

2 Likes

I understand this is meant for remote backups, but is it possible to configure for local backups? I have a spare drive in my server, and I would like to have it synced with the actual server drive. Is this the tool for that, or if not, can someone suggest a better one?