Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Unsolved Backup restore is not working

    Support
    backups import cifs
    3
    10
    135
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jayonrails translator last edited by girish

      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

      jdaviescoates girish 2 Replies Last reply Reply Quote 1
      • jdaviescoates
        jdaviescoates @jayonrails last edited by

        @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?

        I use Cloudron with Gandi & Hetzner

        J 1 Reply Last reply Reply Quote 1
        • J
          jayonrails translator @jdaviescoates last edited by

          @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?

          girish 1 Reply Last reply Reply Quote 0
          • girish
            girish Staff @jayonrails last edited by girish

            @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).

            1 Reply Last reply Reply Quote 2
            • girish
              girish Staff @jayonrails last edited by

              @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.

              J 2 Replies Last reply Reply Quote 2
              • J
                jayonrails translator @girish last edited by

                @girish Thanks for your update. Please let me know when there is a fix available that we can test with.

                1 Reply Last reply Reply Quote 1
                • J
                  jayonrails translator @girish last edited by

                  @girish Hi! Anything new on this topic?

                  girish 1 Reply Last reply Reply Quote 0
                  • girish
                    girish Staff @jayonrails last edited by

                    @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?

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      jayonrails translator @girish last edited by

                      @girish Not really because I don't have 200% of the storage that's in the backup. Any other options?

                      girish 1 Reply Last reply Reply Quote 0
                      • girish
                        girish Staff @jayonrails last edited by

                        @jayonrails ah ok, you can still mount this as cifs by hand to some path say /opt/backup and then use Filesystem .

                        1 Reply Last reply Reply Quote 1
                        • Topic has been marked as a question  girish girish 
                        • First post
                          Last post
                        Powered by NodeBB