-
Notifications
You must be signed in to change notification settings - Fork 3
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
Allow to choose the compression algorithm #12
Conversation
And force compression for yunohost backups
I don't understand this: does that mean that if you change the parameter, it will start new backups right away ? |
That means if you change the compression format, it will recreate all the backups to stick to that new compression format. To make it simple, if you change the compression format, the script will ignore the checksums next time it runs. |
Ok, then it does recreate the backups even if nothing changed (which will not be the case for me) but only during next planned backup. Where do we choose the algorithm ? I can't upgrade :
|
I did not upgrade the package yet, you would have to update the script on its own. And add the option to your If you want to try it, you can run archivist without waiting for the cron to do it. |
You can upgrade to this branch YunoHost-Apps/archivist_ynh#29 It won't add the option to your config file since it doesn't update it. The config-panel doesn't work though... |
I don't understand were I am supposed to put edit: ok I've got it from this https://github.com/maniackcrudelis/archivist/pull/12/files But I still don't understand the difference. edit 2 : it fails.
|
Looks like you didn't update the script. |
But that's what I did 😅 |
If you did an upgrade from YunoHost in CLI, you have to add -F to force the upgrade, otherwise it'll just think there's nothing to do. |
Strangely it did upgrade, including the dependencies (which make me think if was the right version). I'll try again, with edit: still fails. |
Indeed... You're right I do have that error too on a VM... |
... Job half done...
What a nice job... |
It fails :( : https://pastebin.com/yHXc4XXW |
It doesn't sound related to the package. If you have turned on the global compression setting for YunoHost, it doesn't work, as explained on the forum. |
I did turn it on. Could you link to that post on the forum ? I think I missed it. I do have 2 |
Disable that setting, it doesn't work well. |
Ok, thanks a lot, I wouldn't have been able to do it alone 😅 Upgrade did work… as well as the backups ! 🎉 By the way : nice warning message, it helps to understand that there were a change.
|
Let's go for an upgrade then |
Bonus: during the backups, I saw this message
It that something this app should do, or you we ping Synapse maintainer ? |
The backup is operated by the backup script of the app, so that's indeed something that should be done on Synapse package. |
I noticed it kept the (old) Before I delete them, a quick size comparison (gzip size, then zstandard) :
I can compare this final size (tar archive + zsdt ones) to the previous one (tar.gz archives only) : more than 4GB lost with tar archives. For a single weekly backup. So I'll still need to manually delete uncompressed backup (and replace them by the one made by archivist if needed). Anyway, thanks for implementing that feature, it's a game changer for me. |
Actually the purpose of archivist isn't to replace YunoHost backup but to duplicate them elsewhere on a recurrent task. I did myself a few benchmark with exactly similar directories and ynh core, it was successive backups for tests purpose. And clearly gzip is not great, while zstd was better.
Very happy to read that :) |
It wasn't a criticism :), but thanks for clarifying this.
I guess that would launch a script ?
And for both compression and decompression. Gzip is one of the slowest to decompress.
If you have time and don't mind the memory use, indeed it is very good at compressing, and not that slow compared to Zstd (but much better than lzma). That's indeed probably the best bet for archiving with minimum storage space. But I can't afford it on my tiny VPS and Raspberry Pi 😅 |
Btw, regarding storage space: If I understand well, Archivist create temporary backup, check if they are different from previous ones, then do the real backup. Why does it make 2 backups ? |
For YunoHost backups it does, not for simple file backups. The reason why is that the final backup, compressed or not, contains a timestamp. Of course, if you're not moving your backup elsewhere, you don't care. But the purpose was to not recreate backups and send them on another server every day because the timestamp has changed.
Backups which are created by Archivist are indeed removed if not in the backup list anymore. At the end of the process.
It can run a command or a script, as you prefer. |
Thanks a lot for these explanations.
Does that include previous backup of an app that will be saved ?
Ok. I think I prefer to manually remove then, to be sure of what my system is doing.
I am aware of that, but as it takes a lot of space, and is essentially a (compressed) duplicate), I prefer to remove those tar files, and decompress the other ones when needed. |
Not sure to get it. Anyway, archivist does not do incremental backups. Again, the initial purpose was mainly to duplicate backups in different places. And I thought at that time that incremental backup would eat up to many storage space. |
My point is: it will remove the previous one, but does it do that at the end of all backups ? Or right after a backup for app1, then after backup of app 2… ?
And I'm fine with that :) (just waiting for Borg to be integrated in Yunohost ;) |
When creating a new YunoHost backup, it deletes the previous backup made by archivist (using YunoHost command) and then creates a new one. |
And then it goes to the next app to backup ? I so, then I have nothing to comment. If not (=if it does it after all new backups) then maybe it would be better to do that after every app backup (to clear some storage before doing another backup). |
It does it for each app, before going to the next one. See just here |
Allow to select the compression algorithm for
tar
between gzip, lzop, zstd, bzip2, lzma, lzip, xz or no compression.To use lzop, zstd or lzip. Those packages have to be installed:
lzop
,zstd
orlzip
.And force compression for Yunohost backups