Backup restore is not working
-
Hi,
I have migrated my Cloudron to a new server, but didn't back up my Nextcloud because this maneuver would have cost some more hours. The Nextcloud instance is in maintenance mode so the data is consistent.
After that I manually backed up the Nextcloud app and downloaded the backup configuration:
{ "remotePath": "2023-02-21-174034-972/app_cloud.example.com_v4.16.2", "encrypted": false, "provider": "cifs", "format": "tgz", "memoryLimit": 838860800, "schedulePattern": "00 00 23 * * *", "retentionPolicy": { "keepDaily": 2, "keepWeekly": 4 }, "prefix": "", "noHardlinks": false, "mountOptions": { "host": "u123456.your-storagebox.de", "remoteDir": "/backup", "username": "u123456", "password": "●●●●●●●●", "seal": false }, "uploadPartSize": 10485760, "encryption": null, "mountStatus": { "state": "active", "message": "Mounted" } }
I uploaded it to the new Cloudron instance where the Nextcloud app does exist, and imported it as a backup.
The new image is downloading and after that I get the following error message:
Error : Not found - File not found: /mnt/cloudronbackup/2023-02-21-174034-972/app_cloud.example.com_v4.16.2.tar.gz
I checked on the Hetzner StorageBox and the file does exist:
u123456 /home/2023-02-21-174034-972 > ls -l total 283022398 -rwxr--r-- 2 u123456 u123456 144841974298 Feb 21 22:05 app_cloud.example.com_v4.16.2.tar.gz
The file is located at:
u123456 /home/2023-02-21-174034-972 > pwd /home/2023-02-21-174034-972
I don't understand why it doesn't download the backup file to the new server. I am happy for any tipps in this situation.
Best
Jay -
@jayonrails have you configured backups in the same way on the new server as you had them on the old server?
Same version of Nextcloud and Cloudron on both?
-
@jdaviescoates Backup on the new server is not configured yet, but the import Assistent asks for source backup destination, etc. - therefore it should work in my understanding?
-
@jayonrails said in Backup restore is not working:
Error : Not found - File not found: /mnt/cloudronbackup/2023-02-21-174034-972/app_cloud.example.com_v4.16.2.tar.gz
This path seems wrong, I have to double check. Maybe there is a bug in our import logic with CIFS. A quick workaround is to copy the backup file to say
/tmp
or something on the server and then import using Filesystem. I will test this and report here.Edit: to clarify, the path seems wrong because the import logic is supposed to create a temporary mount to access the files. But it's using
/mnt/cloudronbackup
which is the location of the main Backup (so, it cannot be used as the temporary location). -
@jayonrails I could reproduce this one. The import functionality has a bug with CIFS/SSHFS. It creates temporary mounts to access the backup files but ends up accessing them from the wrong path.
-
@girish Thanks for your update. Please let me know when there is a fix available that we can test with.
-
@girish Hi! Anything new on this topic?
-
@jayonrails This will only get fixed in 7.4. If you are blocked by this, best bet is to copy the backup to some folder on the server manually and then import using 'Filesystem' provider. Would that work for you?
-
@girish Not really because I don't have 200% of the storage that's in the backup. Any other options?
-
@jayonrails ah ok, you can still mount this as cifs by hand to some path say
/opt/backup
and then use Filesystem . -
-
-
@girish I think the problem shall be fixed with Cloudron 7.4.1 - I don't have the backup configuration anymore, but the backed up files on my storage.
Any chance to restore them?
What would be the best way to go?Best regards
Jay -
@jayonrails Fix didn't make it for 7.4, but I have fix in place for 7.5.
-
Sad to hear, but I can wait some more weeks. Any ETA for 7.5?
-
@jayonrails We just started on it, so will take a month probably atleast.
-
-