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

    Solved Easy way to "reset" backups...

    Support
    backups backblaze
    5
    10
    352
    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.
    • ericdrgn
      ericdrgn last edited by girish

      So I don't know what is going on but I have my backups set to Backblaze via rsync. And apparently I haven't really been paying attention but something really weird is going on so I just want to start fresh and see if it happens again. Currently I should have between 100-200gb backing up and the retention policy is supposed to cleanup every 2 days. Backblaze is saying I have around 4tb in the bucket.

      So how do I clean out all backups and snapshots properly and just start fresh? Obviously I am just going to wipe everything out from Backblaze as a whole but how do I make Cloudron recognize that and start fresh?

      ericdrgn marcusquinn girish 3 Replies Last reply Reply Quote 0
      • ericdrgn
        ericdrgn @ericdrgn last edited by

        Would it be easiest and work for me to just create a new bucket with Backblaze and create a new config?

        d19dotca 1 Reply Last reply Reply Quote 0
        • d19dotca
          d19dotca @ericdrgn last edited by

          @ericdrgn If your backup retention policy is properly set at 2 days, then all you should need to do is hit the Cleanup Backups button and it’ll purge anything outside of that retention policy (with some exceptions such as version changes).

          I’ve used OVH Object Storage before and when I create a container with them it automatically makes a “+segments” container too, and I’m only charged for the one I created and not the one they create for me. Has something to do with upload sizes with the OpenStack backend or something. So even though I’m usually around 50 GB, and the container says that too, it also looks like I have a few TBs in the +segments container that’s related to it. Is that possibly the same for you? So maybe you’re only using a small amount of space as you expect but it just shows far more? Are you billed for the TBs of data too?

          --
          Dustin Dauncey
          www.d19.ca

          ericdrgn 1 Reply Last reply Reply Quote 0
          • ericdrgn
            ericdrgn @d19dotca last edited by

            @d19dotca Yup to basically everything haha. My backups are set correctly but even hitting cleanup backups I have two backups from 3 weeks ago that won't go away. Besides that it definitely seems like I am being charged. My bill from backblaze jumped like $15 all of a sudden with a negligible amount of change in data that I actually use. So yeah I just want to start fresh and see what happens. I backup nightly so I should only ever have two backups. Not the 4 that cloudron is listing right now. And I should have nowhere near the 4tb that backblaze is saying I have.

            Either way whether I or backblaze is doing something wrong I want to start fresh. So my original question still stands. How do I clear all backups and retrigger a fresh backup using rsync starting from scratch?

            jdaviescoates 1 Reply Last reply Reply Quote 0
            • jdaviescoates
              jdaviescoates @ericdrgn last edited by

              @ericdrgn I'd guess the older backups are from an earlier version of Cloudron than you are currently on? I think those are kept for 2 weeks or something just in case.

              But yeah, clearing out old unwanted backups taking up too much disk space is pretty much the only reason I ever have to SSH info my VPS.

              1 Reply Last reply Reply Quote 0
              • marcusquinn
                marcusquinn @ericdrgn last edited by

                @ericdrgn Check the bucket settings in Backblaze isn't storing versions. They do this by default, I expect to increase storage usage and therefore billing.

                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

                ericdrgn 1 Reply Last reply Reply Quote 1
                • ericdrgn
                  ericdrgn @marcusquinn last edited by

                  @marcusquinn Change "file lifecycle" to "keep only the last version"? Just confirming that is the setting you mean. It was on the "keep all versions"

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

                    @ericdrgn Exactly that - yes - that's the cause & solution 🙂

                    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
                    • girish
                      girish Staff @ericdrgn last edited by

                      @ericdrgn To answer your original question of starting "afresh",

                      • Change the provider to file system backend temporarily
                      • Click cleanup backups. This will also remove all the database entries of backups. This is because in the latest release 6.2, the code checks if the backup exists in the backend and automatically removes the db entries. Since we switched to file system backend, the backups won't be found and Cloudron will remove it from it's internal db.
                      • You can also completely cleanup backblaze now. Sometimes, depending on your situation, it might be easier to just create a new bucket altogether.
                      • Now put it back to backblaze
                      ericdrgn 1 Reply Last reply Reply Quote 5
                      • ericdrgn
                        ericdrgn @girish last edited by

                        @girish Awesome thank you, I appreciate the advice. All seems to be working great now.

                        Also thanks @marcusquinn

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