What type of hardware are you using: Other(?) What YunoHost version are you running: 12.0.9.2 What app is this about: nextcloud
Describe your issue
Hello, and thank you for all the work you do on Yunohost !
I’m testing a “migration” from a raspberry Pi 4 (ARM) on Yunohost 11.3.0.2 to a Zimablade (X86) on a fresh Yunohost 12.0.9.2 install.
I’m just trying to restore backup of different apps.
My main test is to restore a backup of Nextcloud 29.0.5 from Raspberry YNH 11 to Zimablade YNH 12
I’ve read this topic
I deleted the first line of the .sql backup (with Vim not Nano can it be the problem ?) but still got this error message
2025-01-08 16:23:28,963: DEBUG - + mysql --user=nextcloud__2 --password=********** --default-character-set=utf8mb4 --batch nextcloud__2
2025-01-08 16:23:28,980: WARNING - ERROR at line 1: Unknown command ‘-’.
2025-01-08 16:23:28,981: DEBUG - + ynh_exit_properly
2025-01-08 16:23:28,982: DEBUG - + [[ restore =~ ^install$|^upgrade$|^restore$ ]]
2025-01-08 16:23:29,594: ERROR - Impossible de restaurer nextcloud__2 : Une erreur s’est produite dans le script de restauration de l’application
Hi,
Thank you for your help !
After some tries and errors with a lot of data so a lot of time spent, it worked !
I don’t know what went wrong the first times with
nano nextcloud-tar/apps/nextcloud/backup/db.sql
and
delete the file nextcloud-pre-upgrade1.tar from the directory nextcloud-tar
because it enventually worked !
but i had to change this lines because the .tar wasn’t recognized by YNH:
cd …
$ tar -cf nextcloud-pre-upgrade1.tar nextcloud-tar
with no “cd…”
and
$ tar -cf nextcloud-pre-upgrade1.tar *
So now all my apps are up and running on YNH 12, thank you all the team for all your good work