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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Backup restore is not working

Backup restore is not working

Scheduled Pinned Locked Moved Solved Support
backupsimportcifs
14 Posts 3 Posters 3.8k Views 6 Watching
  • 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 Offline
    J Offline
    jayonrails
    translator
    wrote on last edited by girish
    #1

    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

    jdaviescoatesJ girishG 2 Replies Last reply
    1
    • J jayonrails

      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

      jdaviescoatesJ Offline
      jdaviescoatesJ Offline
      jdaviescoates
      wrote on last edited by
      #2

      @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
      1
      • jdaviescoatesJ jdaviescoates

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

        J Offline
        J Offline
        jayonrails
        translator
        wrote on last edited by
        #3

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

        girishG 1 Reply Last reply
        0
        • J jayonrails

          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

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by girish
          #4

          @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
          2
          • J jayonrails

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

            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #5

            @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
            2
            • girishG girish

              @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 Offline
              J Offline
              jayonrails
              translator
              wrote on last edited by
              #6

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

              1 Reply Last reply
              1
              • girishG girish

                @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 Offline
                J Offline
                jayonrails
                translator
                wrote on last edited by
                #7

                @girish Hi! Anything new on this topic?

                girishG 1 Reply Last reply
                0
                • J jayonrails

                  @girish Hi! Anything new on this topic?

                  girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #8

                  @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
                  0
                  • girishG girish

                    @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 Offline
                    J Offline
                    jayonrails
                    translator
                    wrote on last edited by
                    #9

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

                    girishG 1 Reply Last reply
                    0
                    • J jayonrails

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

                      girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #10

                      @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
                      1
                      • girishG girish marked this topic as a question on
                      • girishG girish referenced this topic on
                      • J Offline
                        J Offline
                        jayonrails
                        translator
                        wrote on last edited by
                        #11

                        @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

                        1 Reply Last reply
                        0
                        • girishG Offline
                          girishG Offline
                          girish
                          Staff
                          wrote on last edited by
                          #12

                          @jayonrails Fix didn't make it for 7.4, but I have fix in place for 7.5.

                          1 Reply Last reply
                          1
                          • J Offline
                            J Offline
                            jayonrails
                            translator
                            wrote on last edited by
                            #13

                            Sad to hear, but I can wait some more weeks. Any ETA for 7.5?

                            1 Reply Last reply
                            0
                            • girishG Offline
                              girishG Offline
                              girish
                              Staff
                              wrote on last edited by
                              #14

                              @jayonrails We just started on it, so will take a month probably atleast.

                              1 Reply Last reply
                              0
                              • girishG girish forked this topic on
                              • girishG girish has marked this topic as solved on
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Bookmarks
                              • Search