Easy way to "reset" backups...
-
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 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?
-
@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?
-
@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.
-
@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"
-
@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