yunohost
yunohost copied to clipboard
[wip] Backup location
The problem
We need to be able to backup and restore easily on remote location. Current solution (borg app, archivist) made easier to create a daily backup but the restore operation is quite difficult to do.
Solution
To improve the current app archivist_ynh and borg_ynh, this app create a repository subcategory, to be able to check backup are correctly made and to select them for restoration.
It integrates a borg connector to backup remotely.
See http://pad.arn-fai.net/p/yunohost-backup-api
PR Status
- [x] Make local borg working
- [x] Make remote borg working
- [x] Be able to list files in an archive
- [x] Be able to mount an archive somewhere
- [x] Optimize selective extraction
- [x] Change actionmap to support all new arguments
- [x] Predebug
- [x] Debug timer
- [x] Improve pruning
- [x] Debug legacy tar method
- [x] Debug hook method
- [ ] Debug support self hosting federation client and write SHF server part
- [ ] Debug borg repo encryption settings
- [ ] Diagnosis alert on failed backup
- [x] Readd a repo without reinstalling
- [ ] Download archive from borg :/
- [ ] Go through all fixme / todo
- [x] Add a default repository settings and change actionmap call to get a better backward compatibility
- [ ] Fix property name empty when listing or getting info
- [ ] Migration to publish the ssh public key and create default repository (local-borg and local-legacy)
- [ ] Check correctly the fingerprint on the first connection on a remote repository
- [ ] Webadmin
- [ ] write i18n pattern error
- [ ] write unit tests
- [ ] Write some comments on each function
- [x] Write an example of custom backup methods
- [ ] Compatibility with current remote backup (borg app, borg tuto, archivist, outputdir uncompress) ?
- [ ] Rewrite documentation
Maybe:
- [ ] write Restic integration
- [ ] Debug borg repo update
- [ ] Find a way to check archive integrity by checking weight of .sql for example
- [ ] Find a way to detect if a backup disk is not mounted as usual
- [ ] Find a way to not block yunohost command when backup is running (cause it could be looooong the first time)
- [ ] Check if servers could be in the same building ?
- [ ] Evaluate speed connexion
- [ ] Mount tar archive with ratarmount
How to test
apt install borgbackup
yunohost backup repository add local-borg
yunohost backup create -r local-borg
yunohost backup list
yunohost backup restore local-borg ARCHIVE
Validation
- [ ] Principle agreement 0/2 :
- [ ] Quick review 0/1 :
- [ ] Simple test 0/1 :
- [ ] Deep review 0/1 :