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

    rsync backup full Cloudron restore questions

    Support
    restore rsync
    3
    12
    685
    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.
    • Z
      zjuhasz1 last edited by girish

      My Cloudron died when I updated to 6.0 and I'm now attempting to do a full restore. I read the backup documentation again but I'm unclear on a few things.

      1. I am using encrypted rsync backup on Wasabi. With rsync there is not one archive per backup so I don't understand what I am supposed to enter for backup ID as I have a ton of files that all have different encrypted names.
      2. The documentation says the Cloudron version used for the backup must be the same as the version that was backed up. How do I know what version the backup was made for?
      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @zjuhasz1 last edited by

        @zjuhasz1 Oh, sorry that update failed. If possible, please keep the old server around just in case until the restore succeeds. In fact, if you still have it around, I can help you recover it, if you contact us on support@cloudron.io.

        For the full restore:

        1. The backup ID is just the top level directory name with the timestamp in it.
        2. If you check inside the timestamped directory above, there will be folders like app_* (one for each app) and box_* (this is main cloudron platform backup). The box_ directory name has a version inside it. It's most likely 5.6.3, I am guessing, since this was the release before 6.0.

        So, to start the restore, cloudron-setup --version 5.6.3. Then, after installation provide the ID from step 1.

        Z 1 Reply Last reply Reply Quote 1
        • Z
          zjuhasz1 @girish last edited by

          @girish I don't think anyone will be help to help me recover the server because even ssh isn't working. As for the backup names, I think encryption is making it so I can't see the naming you're talking about. Do I need to decrypt it in order to see the names?

          subven 2 Replies Last reply Reply Quote 0
          • subven
            subven @zjuhasz1 last edited by subven

            @zjuhasz1 how about VNC / Remotedesktop to your (broken) server? Your root/VPS provider will provide you the necessary details. You don't need SSH if you log into the server via console. There has to be some sort of recovery option.

            1 Reply Last reply Reply Quote 0
            • subven
              subven @zjuhasz1 last edited by subven

              @zjuhasz1 okay first off you should download a complete snapshot of the server just in case.

              Why is SSH not working? Maybe it will be easier to reinstall the server to get everything working again. Be aware to use Ubuntu 18.04 if you wish to (re)install a Cloudron prior version 6.0 (not 100% sure about that).

              Okay now you've got your backup externally at Wasabi + the server running a fresh 18.04 with SSH access again. Next would be to look at Wasabi to figure out your Cloudron version and backup ID.

              My backup path looks like this (I use tgz and local storage.....just an example for the naming scheme):

              root@nononono:/var/backups/2020-12-28-220000-748# ll
              total 7200
              drwxr-xr-x  2 yellowtent yellowtent    4096 Dec 28 22:00 ./
              drwxrwxrwx 19 root       root          4096 Dec 29 06:26 ../
              -rw-r--r--  2 yellowtent yellowtent    5242 Dec 28 22:00 app_ea8c8c0e-0e7f-4120-8093-53cda3545b20_2020-12-28-220009-385_v1.3.0.tar.gz
              -rw-r--r--  2 yellowtent yellowtent  446281 Dec 28 22:00 box_2020-12-28-220010-181_v6.0.1.tar.gz
              

              Imagine the directory with your latest backup is 2020-12-28-220000-748. Within that there should be another directory named something like box_2020-12-28-220010-181_v6.0.1. See the Cloudron version tag at the end of the directorys name? Thats the Cloudron version you want to install in order to be able to restore your stuff 🙂

              Follow the install guide and install the version from your last backup with cloudron-setup --version X.X.X (most likely 5.6.3 like @girish already said).

              After the installation is done, open the Cloudron installation wizzard and press restore at the bottom.

              cloudron-restore.png

              The backup ID is made up of the folder with the date of the backup + the folder for the box backup inside of that so your backup ID is something like 2020-12-28-220000-748/box_2020-12-28-220010-181_v6.0.1 (take a look at your Wasabi to figure out the exact name). Folder names should not be encrypted and you do not have to worry about encrypted filenames within the directorys.

              Z 1 Reply Last reply Reply Quote 1
              • Z
                zjuhasz1 @subven last edited by

                @subven I think file names are different for rsync and tgz. With rsync file names are encrypted. Also, this is my own physical server, I am not using a VPS.

                subven 1 Reply Last reply Reply Quote 0
                • subven
                  subven @zjuhasz1 last edited by subven

                  @zjuhasz1 again, this has nothing to do with encrypted files or filenames. It's all about directories (their names are not encrypted). Just for you I changed my backup method to encrypted rsync and took a look at the backup ID. It was 2020-12-29-220201-220/box_2020-12-29-220210-289_v6.0.1 🙂

                  If it's your own server you just need some sort of display output to log into console.

                  Z 1 Reply Last reply Reply Quote 0
                  • Z
                    zjuhasz1 last edited by

                    I see box backup filename is not encrypted like all the others, just hadn't been backed up for a while so I had to go back to older dates.

                    1 Reply Last reply Reply Quote 0
                    • Z
                      zjuhasz1 @subven last edited by

                      @subven Directory names are also encrypted with rsync, except for the box directory. I was talking about ssh specifically because @girish wanted to ssh into the server to see if he could recover it.

                      girish subven 2 Replies Last reply Reply Quote 0
                      • girish
                        girish Staff @zjuhasz1 last edited by girish

                        @zjuhasz1 trying to understand where you are at, were you able to restore using the @subven 's instructions? Understood that SSH access is not possible.

                        Z 1 Reply Last reply Reply Quote 0
                        • subven
                          subven @zjuhasz1 last edited by

                          @zjuhasz1 sorry if this was worded in a misleading way. I was talking about backup directory names (or in my case tar files) not beeing encrypted. The backup content (including directories) insiside the backup folders is of course encrypted!

                          root@nononono:/var/backups/2020-12-29-220201-220# ll
                          total 40
                          drwxr-xr-x 10 yellowtent yellowtent 4096 Dec 29 22:02 ./
                          drwxrwxrwx 21 root       root       4096 Dec 29 22:41 ../
                          drwxr-xr-x  3 yellowtent yellowtent 4096 Dec 29 22:02 app_ea8c8c0e-0e7f-4120-8093-53cda3545b20_2020-12-29-220209-292_v1.3.0/
                          drwxr-xr-x  8 yellowtent yellowtent 4096 Dec 29 22:02 box_2020-12-29-220210-289_v6.0.1/
                          root@nononono:/var/backups/2020-12-29-220201-220# cd box_2020-12-29-220210-289_v6.0.1/
                          root@nononono:/var/backups/2020-12-29-220201-220/box_2020-12-29-220210-289_v6.0.1# ll
                          total 560
                          drwxr-xr-x  8 yellowtent yellowtent   4096 Dec 29 22:02 ./
                          drwxr-xr-x 10 yellowtent yellowtent   4096 Dec 29 22:02 ../
                          -rw-r--r--  2 yellowtent yellowtent    484 Dec 29 22:02 WdeFj9fY2SnSZ5P1zxX6jbeJpsJ+naYYzLLbIvriNY4
                          drwxr-xr-x  2 yellowtent yellowtent   4096 Dec 29 22:02 Z+oIhMPlSz075v8M6HN-5ad5-QklUG6H6hPj19IqJyE/
                          
                          1 Reply Last reply Reply Quote 0
                          • Z
                            zjuhasz1 @girish last edited by

                            @girish my initial questions are all resolved now. I'm having some new problems though. Namely that it seems the Cloudron installer is installing Gnome which is making my server enter sleep mode. I disabled it now but I'm confused as to why Gnome is being installed.

                            subven 1 Reply Last reply Reply Quote 0
                            • First post
                              Last post
                            Powered by NodeBB