-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Borg Backup Restore procedure is not working #181
Comments
exactly the same issue: borg backs up apps and creates a .tar (.tar.gz) which includes (inside) a I've exctracted that file, rename it like app-backup.tar file (app-backup.info.json) but then YNH can not reinstall because than json is malformed/incorrect/etc. So we have borg backups, but can't we restore apps? Have you @braunMarkus found any workaround for this issue? I found about it trying to recover an app after migration to ynh12 (if this is relevant). Also tried .tar.gz without success. Shouldn't backup-ynh detect this info.json file inside .tar file? Thank you. |
Hi xmgz, I haven't found neither a solution or a workaround. |
welp, "somebody" (me) has posted about https://forum.yunohost.org/t/borg-restore-backup-file-without-info-json/31979 with reference to this issue here I have not tried that last ".tar repackaging" yet |
I came across this nasty surprise today. Checking the folder structure of the same backup done with yunohost (right) and borg (left) I see some structure difference like someone else mentioned here: So I have restructured the Borg backup .tar archive to simply remove the folder structure So it is simply an issue with the folder structure of the Borg archives and Yunohost cannot make sense of them. Can we find a proper solution for this within Borg or Yunohost? |
My ad hoc theory is that |
Describe the bug
The Borg backup software is not working as described or to be more precise, the restoration of any borg created backup is not working for me.
I am using borg locally to create backups on a seperate mounted disk and it creates backups weekly which is working fine.
However, I cannot restore things. Whenever I try to use the described way with "borg export-tar ::" it just throws out a .tar file which is neither recognized by the built-in backup tool when copied to the right location nor if I extract the backed up files locally.
I have the feeling that the path inside the backup is somehow mixed up because when I extract it, the path is always 'home/yunohost/yunohost.backup/tmp/...' instead of '/home/yunohost.app/'.
Context
yunohost app info $app_id
Steps to reproduce
Follow the steps from borg Application page to restore
borg export-tar :: this-tar.tar
yunohost backup restore this-tar.tar
=> Error: Info.json not found or not a valid json file
Expected behavior
Well, just as described in your documentation ;-)
Logs
When an operation fails, YunoHost provides a simple way to share the logs.
yunohost log display [log name] --share
. If you missed it, you can find the log ID of a previous operation usingyunohost log list
.After sharing the log, please copypaste directly the link provided by YunoHost (to help readability, no need to copypaste the entire content of the log here, just the link is enough...)
If applicable and useful, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: