YunoHost-Apps / borg_ynh

An experimental Borg implementation for YunoHost
https://www.borgbackup.org/
GNU Affero General Public License v3.0
19 stars 23 forks source link

feature request: send one backup on multiple locations #31

Closed tomdereub closed 4 years ago

tomdereub commented 5 years ago

It could be cool to do the backup once (I mean, all the work borg does before sending the backup to the destination) and send it to two (or more) different locations. For example, you can do a backup on a local hard disk and on a distant location.

zamentur commented 5 years ago

Backup with borg in YunoHost work like this:

  1. Collect all files to backup by activating backup script (of yunohost and apps) (eventually make a dump)
  2. Evaluate Size of all of this
  3. Run the backup method (in this case borg), at this step, borg check remote "chunks" and send missing chunks .

This last step is dependent of the remote borg server (so borg can't precalculate for 2 servers).

About the phase number 1&2, this shouldn't be so long. But i may be wrong... If i am right you just need to install several borg_ynh app to manage all backup politics you need.

If i am wrong, please tell me how many times take the first step, and how it is bad for your use case.

zamentur commented 5 years ago

Note: it's possible to hack borg_ynh to send to 2 destinations with the same shedule task, but i discourage it. What if the first step fail, if you keep separate your backup is made locally or remotely if no you have no backup...

https://forum.yunohost.org/t/borg-backup-local-et-distants/6617/6?u=ljf

tomdereub commented 4 years ago

Ok, so it was just a bad idea.