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. Feature Requests
  3. Backup Improvements: Restic Backend

Backup Improvements: Restic Backend

Scheduled Pinned Locked Moved Feature Requests
backupsfeature-requestimprovementrestic
44 Posts 10 Posters 6.3k Views 10 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.
    • imc67I imc67

      @girish yes indeed I use Hetzner Storagebox and use tgz over CIFS. Is there a better/smarter/quicker way?

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

      @imc67 yes, Hetzner Storagebox has rsync . So, we can be muuuch more efficient when calculating changes. I will investigate how much better it can get.

      imc67I 1 Reply Last reply
      2
      • imc67I Offline
        imc67I Offline
        imc67
        translator
        wrote on last edited by
        #22

        Curious for which settings do you recommend for backups to Storagebox and how much better it can get ๐Ÿ™‚

        1 Reply Last reply
        1
        • girishG girish

          @imc67 yes, Hetzner Storagebox has rsync . So, we can be muuuch more efficient when calculating changes. I will investigate how much better it can get.

          imc67I Offline
          imc67I Offline
          imc67
          translator
          wrote on last edited by
          #23

          @girish still very curious for the results of your investigation? Everything that's more efficient and quicker than tgz over CIFS more than 200GB to a Storagebox is very very welcome ๐Ÿ™‚

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

            @imc67 still working through the backups rewrite, will leave a note here once I have something.

            imc67I 1 Reply Last reply
            2
            • girishG girish

              @imc67 still working through the backups rewrite, will leave a note here once I have something.

              imc67I Offline
              imc67I Offline
              imc67
              translator
              wrote on last edited by
              #25

              @girish after 4 months I'm still curious for the results of the "backups rewrite" as our daily backup now takes >5 hours

              girishG 1 Reply Last reply
              0
              • imc67I imc67

                @girish after 4 months I'm still curious for the results of the "backups rewrite" as our daily backup now takes >5 hours

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

                @imc67 the rewrite hasn't happened ๐Ÿ˜ž I think this will only happen over xmas and new year vacation when support is low.

                1 Reply Last reply
                0
                • imc67I Offline
                  imc67I Offline
                  imc67
                  translator
                  wrote on last edited by
                  #27

                  Any update on the backup methodology? I read a lot of issues in the forum about crashing backups due to several reasons. Maybe this can help?

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

                    @imc67 we have not started working on a restic backend, if that's what you are asking.

                    I think most of the issues are just because of using a large variety of s3 providers. There's way too many of them. Made worse by people choosing the cheapest/low end providers who don't provide any support either. That and SSHFS/CIFS flakiness. I doubt moving to restic solves any of this because they are not related to backup code itself but infrastructure related. Just my thoughts though.

                    Now instead of dealing with our backup issues, we would be dealing with issue of another backend like say 1, 2 and 3 - these are just restic issues of last week. It would be worse because we have not much idea on how to deal with restic bugs.

                    robiR 1 Reply Last reply
                    0
                    • girishG girish

                      @imc67 we have not started working on a restic backend, if that's what you are asking.

                      I think most of the issues are just because of using a large variety of s3 providers. There's way too many of them. Made worse by people choosing the cheapest/low end providers who don't provide any support either. That and SSHFS/CIFS flakiness. I doubt moving to restic solves any of this because they are not related to backup code itself but infrastructure related. Just my thoughts though.

                      Now instead of dealing with our backup issues, we would be dealing with issue of another backend like say 1, 2 and 3 - these are just restic issues of last week. It would be worse because we have not much idea on how to deal with restic bugs.

                      robiR Offline
                      robiR Offline
                      robi
                      wrote on last edited by
                      #29

                      @girish It could also be the opposite experience, since restic would be handling all the issues, meaning less work for you with custom one-off fixes as they crop up.

                      Conscious tech

                      girishG 1 Reply Last reply
                      2
                      • imc67I Offline
                        imc67I Offline
                        imc67
                        translator
                        wrote on last edited by
                        #30

                        FWIW I have a RaspberryPi for 3 years with a Restic daily backup to a Cloudron Minio S3 and 2 weeks ago I needed a restore for the first time. It took me the most time to rediscover how I configured it 3 years ago and how to restore but it worked flawless! I know itโ€™s just n=1 but itโ€™s worth to have a look at it.

                        1 Reply Last reply
                        2
                        • robiR robi

                          @girish It could also be the opposite experience, since restic would be handling all the issues, meaning less work for you with custom one-off fixes as they crop up.

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

                          @robi yes definitely.

                          I do know that people want urgent fixes when backups and restores are not working, I just don't know how we can take up this responsibility. If my production site is down and it doesn't restore, what now? This will cost us real money because people will ask for a refund.

                          fbartelsF robiR 2 Replies Last reply
                          1
                          • girishG girish

                            @robi yes definitely.

                            I do know that people want urgent fixes when backups and restores are not working, I just don't know how we can take up this responsibility. If my production site is down and it doesn't restore, what now? This will cost us real money because people will ask for a refund.

                            fbartelsF Offline
                            fbartelsF Offline
                            fbartels
                            App Dev
                            wrote on last edited by fbartels
                            #32

                            @girish I think something that could be interesting, is the ability to use the cloudron filesystem dump and then have a "hook" that could post process the data. Possibly with capturing whatever that hook produces in a cloudron notification (to be natively informed if the post processing fails).

                            I have set up a few cloudrons in the last week with a combination of local disk rsync in cloudron (with local retention and hardlinks) and then using autorestic and Cron to push the cloudron backup via sftp to a hetzner storageboxes (optionally as a subuser). Have even performed a restore test, for which I first restored the previous state of /var/backups before running cloudrons restore.

                            Autorestic is taking care of retention and streamlining the sftp backend use. I even use it to make regular snapshots of the appsdata and boxdata directories in the yellowtent home.

                            The benefit of the hook would be the extended piece of mind that as soon als cloudron has finished the backup, it is pushed to its remote location.

                            @girish said in Backup Improvements: Restic Backend:

                            This will cost us real money because people will ask for a refund

                            Yes, restore of backups is crucial. Luckily so far cloudron has not let me down and overall it has been a very stable experience.

                            necrevistonnezrN 1 Reply Last reply
                            4
                            • fbartelsF fbartels

                              @girish I think something that could be interesting, is the ability to use the cloudron filesystem dump and then have a "hook" that could post process the data. Possibly with capturing whatever that hook produces in a cloudron notification (to be natively informed if the post processing fails).

                              I have set up a few cloudrons in the last week with a combination of local disk rsync in cloudron (with local retention and hardlinks) and then using autorestic and Cron to push the cloudron backup via sftp to a hetzner storageboxes (optionally as a subuser). Have even performed a restore test, for which I first restored the previous state of /var/backups before running cloudrons restore.

                              Autorestic is taking care of retention and streamlining the sftp backend use. I even use it to make regular snapshots of the appsdata and boxdata directories in the yellowtent home.

                              The benefit of the hook would be the extended piece of mind that as soon als cloudron has finished the backup, it is pushed to its remote location.

                              @girish said in Backup Improvements: Restic Backend:

                              This will cost us real money because people will ask for a refund

                              Yes, restore of backups is crucial. Luckily so far cloudron has not let me down and overall it has been a very stable experience.

                              necrevistonnezrN Online
                              necrevistonnezrN Online
                              necrevistonnezr
                              wrote on last edited by
                              #33

                              @fbartels said in Backup Improvements: Restic Backend:

                              I have set up a few cloudrons in the last week with a combination of local disk rsync in cloudron (with local retention and hardlinks) and then using autorestic and Cron to push the cloudron backup via sftp to a hetzner storageboxes (optionally as a subuser). Have even performed a restore test, for which I first restored the previous state of /var/backups before running cloudrons restore.

                              @fbartels Exactly my setup for a couple of years: https://forum.cloudron.io/topic/6928/tutorial-remote-backup-of-local-cloudron-backup-snapshots-with-restic-rclone/
                              Whatโ€˜s nice is that you can e.g. check and restore files on a different machine running restic & rclone.

                              1 Reply Last reply
                              5
                              • girishG girish

                                @robi yes definitely.

                                I do know that people want urgent fixes when backups and restores are not working, I just don't know how we can take up this responsibility. If my production site is down and it doesn't restore, what now? This will cost us real money because people will ask for a refund.

                                robiR Offline
                                robiR Offline
                                robi
                                wrote on last edited by robi
                                #34

                                @girish said in Backup Improvements: Restic Backend:

                                I do know that people want urgent fixes when backups and restores are not working,

                                Yes, however be aware of fear based thinking here. It's not the end of the world, previous backups exist and the situation is temporary.

                                I just don't know how we can take up this responsibility.

                                It isn't your responsibility, even though you empathize and do a lot for us to make it easier. External backups are an external responsibility and best effort support here, which you do well. So, no fear.

                                If my production site is down and it doesn't restore, what now? This will cost us real money because people will ask for a refund.

                                It's like any other issue, you and we will find a way. This is the way.
                                Again, avoid decisions out of fear. And no, it will not cost you money (you're not hurting there), as it's not a Cloudron issue, but an external one.

                                You can relax and trust your loyal community to show you the way forward, as @fbartels and @necrevistonnezr already have.

                                Conscious tech

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

                                  @necrevistonnezr that's an excellent post which I forgot about! I just proceeded to set up a backup of my laptop with restic+minio. Let's see how it goes!

                                  1 Reply Last reply
                                  2
                                  • girishG Offline
                                    girishG Offline
                                    girish
                                    Staff
                                    wrote on last edited by
                                    #36

                                    After a year, prune fails randomly ๐Ÿ˜ž

                                    The index references 1 needed pack files which are missing from the repository:
                                      64c2b4cd29f07b6d64f4d0ede2509fd680597b16db65b77e14e8575e1265f1bf
                                    Fatal: packs from index missing in repo
                                    
                                    1 Reply Last reply
                                    0
                                    • necrevistonnezrN Online
                                      necrevistonnezrN Online
                                      necrevistonnezr
                                      wrote on last edited by
                                      #37

                                      https://forum.restic.net/t/fatal-packs-from-index-missing-in-repo/4869 --> https://github.com/restic/restic/issues/828#issuecomment-706186047 --> https://restic.readthedocs.io/en/stable/077_troubleshooting.html

                                      Judging from the background story in Very slow restic prune , my guess would be that the S3 bucket listing is incomplete from time to time. So, a quite likely explanation is that the list of pack files which prune gets in incomplete and hence the missing file errors. As far as I remember, minio has options to ensure a consistent file listing or maybe youโ€™re encountering some timeout.

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

                                        @necrevistonnezr thanks. so far, I am following the troubleshooting guide and running check --read-data first. This runs for around 3 hours now, let's hope it says something at the end of it. We are using Vultr Storage.

                                        1 Reply Last reply
                                        0
                                        • necrevistonnezrN Online
                                          necrevistonnezrN Online
                                          necrevistonnezr
                                          wrote on last edited by necrevistonnezr
                                          #39

                                          For what it's worth, I had zero problems in the last 7 years I've been using restic on my server with around 380 GB of data to be backed up to Onedrive (via rclone)...
                                          I do regular tests with restic and spot checks via restic-browser.

                                          1 Reply Last reply
                                          1
                                          • M Offline
                                            M Offline
                                            malvim
                                            wrote on last edited by
                                            #40

                                            @necrevistonnezr how have you been testing backups? I have a raspberry pi at home, set up with restic/rclone backups as well. Once in a while I mount one of the latest snapshots and check a bit randomly if things "look ok". I'd like to have a better system to check if backups are okay, so any pointers would be appreciated.

                                            On a more cloudron-related note, @girish, is there a way people test restoring backups on their cloudrons? How would one go about tesing if restore will run okay when needed?

                                            girishG necrevistonnezrN 2 Replies Last reply
                                            1
                                            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