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

    What is your backup config and why?

    Discuss
    backups
    6
    9
    279
    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.
    • d19dotca
      d19dotca last edited by girish

      I thought it’d be interesting to see how people commonly setup the backup config and perhaps even why they set it up that way. In particular I’m curious about frequency of backups and retention periods.

      I’ve been going through many different schemes over the last year. Currently my setup is this:

      • Frequency: backup twice daily at 7 AM & 7 PM
      • Retention: 2 days

      I’ve been thinking of changing retention to a week as a “just in case” (especially since object storage is so inexpensive too), but honestly not sure if it’s needed as I’ve so far always been able to restore just fine with a two-day retention.

      I used to backup much more frequently (4-6 times a day) back when email was much more critical and changing frequently during the pandemic for my medical clinic clients, however that’s since become less used so I’ve dropped the backup frequency to twice as a result.

      Since it’s currently done twice a day, I chose 7 AM and 7 PM to keep them evenly apart and outside of peak usage of the server to minimize any performance impact. Additionally 7 PM is important for me because I have the system auto-update apps on weekdays at 8 PM so having the backups done just prior is an extra safety net in case anything catastrophic happens during a Cloudron update or something too.

      What about you? What do you have it configured to do and why? I think it’d be great to learn from others in case they are thinking of things that I’m missing and need to consider, or vice-versa.

      --
      Dustin Dauncey
      www.d19.ca

      P 1 Reply Last reply Reply Quote 2
      • ?
        A Former User last edited by

        I backup once a day every day except sunday, where I run updates. Also I use filesystem backups for now until my internet is good enough to not have multi hour S3 backups.

        1 Reply Last reply Reply Quote 0
        • P
          p44 translator @d19dotca last edited by

          @d19dotca

          • Frequency: backup twice daily at 2 AM and 2 PM
          • Retention: 2 days

          This because more retention take a lot of space. If Cloudron team find a solution to avoid Wasabi policy I'll change retention to 7 days.

          1 Reply Last reply Reply Quote 0
          • nj
            nj last edited by

            I think I am a little too paranoid here. Once I had to recover data deleted from the Gitea instance a month before. Since then I have this backup strategy:

            • Frequency: 01:00 AM daily
            • Retention: 7 daily, 4 weekly, 12 monthly
            • Method: Full snapshot (not incremental)

            At all times I use around 23x180GB = ~4TB space only for backup.

            Founder of Yarsa Labs

            necrevistonnezr 1 Reply Last reply Reply Quote 1
            • necrevistonnezr
              necrevistonnezr @nj last edited by

              Daily unencrypted Backup to local filesystem using the rsync backend and the "3 daily, 4 weekly, 6 monthly" schedule.

              Daily encrypted backup of the "snapshot" folder via restic to OneDrive (which is in my O365 subscription) with the same Schedule as above.

              1 Reply Last reply Reply Quote 2
              • marcusquinn
                marcusquinn last edited by

                Note to self, need to get around to testing this too: https://community.hetzner.com/tutorials/install-and-configure-borgbackup

                We're not here for a long time - but we are here for a good time :)
                Jersey/UK
                Work & Ecommerce Advice: https://brandlight.org
                Personal & Software Tips: https://marcusquinn.com

                1 Reply Last reply Reply Quote 2
                • d19dotca
                  d19dotca last edited by

                  @atrilahiji - Just curious, how much data needs to be backed and to S3 (when you enable that method) where it takes multiple hours? I use the OVH Object Storage which uses the S3 protocol, and I have approximately 30-35 GB to backup (before compression), and it takes me almost 45-55 minutes each time. I am using tarball/tgz though so some of that time may be the limitations in CPU on my node before it's even uploaded. After it's zipped the 30-35 GB becomes closer to 6 GB. I'm sure OVH Object Storage isn't as performant either as AWS S3 would be.

                  @p44 - Do you find the 2 PM (presumably that's a "peak" time for your server traffic) impacts performance at all?

                  @nj - Wow! That's a huge data transfer for the backups and total backup storage! So far I've been lucky in that anytime I need to restore it's always from a day or two (usually just hours) prior so I've kept mine at 2 days retention, but I do fear at some point it'll happen where something may be irrecoverable if I don't have a backup from far enough back. Maybe I'll look into the daily/weekly retention setting instead of 2 days or even 1 week.

                  @necrevistonnezr - I wish I had enough disk space locally to backup to a file system for the lighter stuff. That's awesome you can do that! Neat idea on the restic sync to OneDrive afterwards too.

                  --
                  Dustin Dauncey
                  www.d19.ca

                  ? P 2 Replies Last reply Reply Quote 0
                  • ?
                    A Former User @d19dotca last edited by A Former User

                    @d19dotca
                    I have about 250GB right now to backup. Mostly from Nextcloud.

                    1 Reply Last reply Reply Quote 0
                    • P
                      p44 translator @d19dotca last edited by

                      @d19dotca said in What is your backup config and why?:

                      @p44 - Do you find the 2 PM (presumably that's a "peak" time for your server traffic) impacts performance at all?

                      This is a very good question. Performances could be affected but our customers in that time they are in lunch time, so we prefer to keep an updated copy of backup after "morning work". Backup all data it takes around 30minutes.

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