What type of hardware are you using: VPS bought online What YunoHost version are you running: 12.1.25 (stable) How are you able to access your server: SSH
Describe your issue
I’m trying to restore a backup file that contains a mastodon backup. The update went wrong because I had too few free space, so I tried various options until I downloaded the backup, deleted it from the server and uploaded it again it to the server using scp as explained in the docs (Backups). The backup is a .tar.gz file.
Now the webadmin view doesn’t show my backup while the command line (sudo yunohost backup restore yunohost-vps-mastodon-pre-upgrade1) returns tarfile.ReadError: not a gzip file. I can access the compressed archive on my machine and it seems right (as far as I can tell from a rapid view).
I now have enough space to accommodate the backup (a little more than 40GB free for a 11GB backup).
That shouldn’t be the reason, but thank you for letting me discover that command! I tried it to no avail hoping it would work
Actually my first attempt to update Mastodon failed for that reason. The log I shared are from my second (successful) attempt after freeing some space. The reason I deleted the backup from the server in the first place was trying to free some space with that and other methods. At the end I surrended and doubled my VPS space, so I should have enough space for now.
I randomly found this answer to another question that worked for me, too. To summarize the yunohost backup interface for some reason (when the corresponding option is enabled) creates the bakups using the .tar.gz extension keeping the file a tar archive. This mismatch between the extension and the file creates the problem.
Solution: rename the file from yunohost-vps-mastodon-pre-upgrade1.tar.gz to yunohost-vps-mastodon-pre-upgrade1.tar