posted in Selfhosted

How long do you keep your backups?

Right now I’m creating a nightly restic snapshot of my server on borgbase and on some spare drives, and keeping the snapshots forever. There’s a ton of daily churn in my data though, between databases and logs and other files that don’t constitute ‘real data’ but might be needed to restore the app.

enPage

Replying to @⁨Dave@lemmy.nz⁩

Kinda depends on what it’s for. My server? IDK, 2 days. Maybe have a dedicated weekly/monthly backup left behind. PC? Honestly just the latest is fine.

But it’s a 10tb drive, so I’ve got months of backups even if they’re running continuously. It’s less a how comfortable I am and more a how much can I afford. (a lot more before the shortage)

I also explicitly purge stuff that’s constantly changing like logs. I don’t care for logs in my backups. Only on the live machine.

Replying to @⁨fuckwit_mcbumcrumble@lemmy.dbzer0.com⁩

I have Nextcloud on my server which stores all those documents and photos etc. I have nightly offsite backup as well as backing up to a local borg repo on a separate drive.

But as it’s that important to me, I also do a once-yearly backup of non-encrypted files to M-Disc, with two copies, one stored at my mother’s house. This way if my house burns down and I’m inside it, my family can still get (most of) the precious memories without needing to know how to access a borg repo and without having to know how to download from Backblaze object storage.

I’m just a little bit paranoid about losing things after that one time I dragged from a USB stick to my computer and when it was done moving the files they were all corrupt, and didn’t exist on the USB stick anymore either. Thanks Windows, a whole holiday of photos gone.

Replying to @⁨ISOmorph@feddit.org⁩

Back when I used OneDrive, it deleted an important but seldom used folder. It just wasn’t there anymore. No one noticed for 6 months, but luckily I had kept a backup each month so could restore it easily.

3 weeks is definitely not long enough for me to notice something missing, if it’s just a random chunk of my 700GB of important stuff. E.g. if a folder of my kids photos from 5 years ago suddenly disappeared, I probably wouldn’t notice it for months but would be devistated to find it missing when I eventually went looking for it.

Replying to @⁨gwheel@lemmy.zip⁩

I was backing up multiple places on my LAN but than half of my place flooded, so lamenat and carpet was ripped up, one of my pi 5’s was misplaced with a NVMe drive and another was lost. Than just down the street 3 house went up in flames had the wind been blowing just a little south my condo complex would have been burnt to the ground. After the fire fighters were telling us to get back further and further I had my main pi 5 that had all the backups of everything important on another NVMe drive and a few other things ready to go if the firefighters started banging on my door telling me it was time to leave. I wish I could honestly say that was the day I decided to get a VPS and start my back up, but I was still hoping my father would let me set up a pi with a drive big enough to do back ups at his place. It sounds like he will but he is concerned about security risks about my VPN, funny thing is my back up pi would be the most secure thing hooked up to his modem/router and I wouldn’t want his stuff touching my stuff and with how my LAN and VPN are set up they would have a hard time doing it. Anywho I have a domain hosted by EasyDNS, and just went and looked at their VPS options and got some year long plan and set up cron jobs to take the stuff I want to backup and use age to encrypt it and than it is sent to my VPS each age container is than deleted after there is something of the same name but 3 days iterations older and deletes it.

Replying to @⁨Dave@lemmy.nz⁩

If it was just for backup backblaze is probably less expensive but my LAN consists mostly of pi’s and hand me down computers. I am slowly moving things around on my LAN so to each their own I guess. I like the idea of having more control over my stuff so having a whole Debian system on the other end feels right for me.

*edit: It also gives me peace of mind knowing that I can encrypt my stuff to my liking. Silly me I forgot to actually look at the encryption tool I used, I just did a search and found age was highly suggested. It is coded in Go, sure it is open source and all that I am just not a fan of the language.

Replying to an earlier post

I learned I pretty much never need old data for my hobby selfhosting stuff. So I do 4 weeks. I’ll notice if something breaks within 4 weeks and fix it. I occasionally do manual backups, for example when migrating stuff and keep them for longer. And I got some old stuff like in xkcd 1360.

I suppose I could do more, but I also want the privacy policy of my online services to say: x weeks and all the logs and unnecessary data is gone.

xkcdOld Files

Replying to an earlier post

Zero or one backups depending on the type of data generally.

For a system if it can’t be redeployed from a list of requirements then I Foundationally ducked up. It means either I’m depending on something fragile, unknowable or over complicated.

Raw data on the other hand goes on a raid array. If I need more redundancy then that, then a single extra off site backup on a cd or something.

A back up on the same drive as the original isn’t a backup. It’s a waste of space, and a stupid idea.

A system that requires excessive nonsense is not reliable.

If I have a on and off site back up and both fail. Then either the world is literally fucking on fire and it doesn’t matter. Or someone dropped a bomb on my storage.

Either way I have bigger problems at that point.

Replying to @⁨Sibbo@sopuli.xyz⁩

I generally have Operating System backups that are stored on the same drive. Those backups are immediately copied to 3 different devices, my computer and two other drives

The backup on the local drive is useful for when I’m tinkering, making adjustments, adding or removing stuff. Restoring from that local backup is far more convenient than using the remote backups

I don’t use anything with a database so all my static media files and wiki’s don’t go to the local backup. I handle them separately but they are still spread across the 3 other devices in my network

Replying to @⁨JustARaccoon@lemmy.world⁩

I didn’t really want to poke through each containers files to figure out where it stores logs, plus it adds risk that I’m not backing up something I should.

When I say databases aren’t real data, I’m more talking about them changing every day despite nothing happening. Even if I haven’t taken any photos or opened the app, today’s db dump of immich is not the same as yesterday’s db dump so restic stores it as a new unique file.

Replying to @⁨gwheel@lemmy.zip⁩

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

Fewer Letters More Letters Git Popular version control system, primarily for code LXC Linux Containers NAS Network-Attached Storage NFS Network File System, a Unix-based file-sharing protocol known for performance and efficiency NVMe Non-Volatile Memory Express interface for mass storage Plex Brand of media server package RAID Redundant Array of Independent Disks for mass storage SSD Solid State Drive mass storage VPN Virtual Private Network VPS Virtual Private Server (opposed to shared hosting)

[Thread #137 for this comm, first seen 17th Oct 2026, 15:00] [FAQ] [Full list] [Contact] [Source code]

Hachyderm.ioImran Nazar ~ عمران نزر (@Two9A@hachyderm.io)3.24K Posts, 316 Following, 296 Followers · Front-end #typescript developer and general keyboard tapper; author of Internet RFC 7168 (Hypertext Coffeepot Control Protocol for teapots); occasional plumber, more than occasional #c64 #retrocomputing enthusiast, terrible at classical #piano. Header photo is a verdant scene looking over the landscape near Buxton, England, taken from a single-track country road.

Replying to @⁨gwheel@lemmy.zip⁩

As of now, i keep them basically for ever, but granularity gets less over time. (restic forget)

Before you go nuts about files you want to exculde the “churn” as you said it, go ahead and actually check how much space this actually takes up. Text and especially logs are highly compressible and will most likely end up taking up almost no space.

Be sure you backup everything you actually need, rather backup a file more then a file too less.

Replying to @⁨gwheel@lemmy.zip⁩

Backups kept “forever” is the most common over-provisioning mistake, and the fix isn’t a single number — it’s a retention tier structure. The reason: daily churn (databases, logs) creates snapshots that are 95% identical, so keeping 400 of them costs you almost nothing in space but clutters restores; the snapshots you actually need cluster at a few time horizons.

A structure that works well with restic (via the forget policy, so it’s declarative in one place):

  • –keep-daily 7 — last week’s daily points. Covers “oops, I deleted the wrong thing yesterday.”
  • –keep-weekly 5 — a month of weekly points. Covers “the corruption started sometime in the last few weeks” (the silent-corruption case is why you need multiple restore points, not just the newest good one).
  • –keep-monthly 12 — a year of monthlies. Covers “I need the version of the file from 8 months ago,” which happens more than people predict.
  • –keep-yearly 2 — cheap insurance for the truly weird requests.

Practical notes:

  • Add –group-by host,paths if one restic repo backs multiple machines/tags, or forget will prune across hosts in ways that surprise you.
  • Run restic forget --dry-run first, always. Look at what it would delete before letting prune loose. The single most expensive restic mistake is a bad forget policy + –prune in one command.
  • Separate “churn” data from “real” data with tags or separate repos. Logs that only matter for debugging don’t deserve yearlies; keep those at daily/weekly only and your prune time drops a lot.
  • Whatever policy you pick, the real rule is: retention must be bounded by what you’d genuinely restore. If you’ve never restored anything older than ~3 weeks in practice, keeping 400 snapshots is effort spent guarding a scenario that doesn’t exist for you. Pick the tiers, prune once, and stop thinking about it.
  • One more: verify with restic check --read-data-subset=x% on a schedule. A retained snapshot you’ve never verified is a hope, not a backup.

Replying to @⁨gwheel@lemmy.zip⁩

The useful split isn’t by time, it’s by data class — your “churn that isn’t real data” observation is the key:

Separate repositories for real data vs. app state. Databases, logs, container images, caches in one repo with aggressive expiry; documents, photos, configs in another with long retention. Then “how long” becomes easy per class instead of one uncomfortable compromise.

For the churn class, a sane baseline with restic:

restic forget --prune --keep-daily 7 --keep-weekly 4 --keep-monthly 6 --keep-yearly 2

Reasoning: most restores are “it broke today/yesterday” — dailies cover those. Weekly+monthly exist for “the corruption was already there and I didn’t notice” (ransomware, a bad deploy 5 weeks ago, silently-degraded RAID). Yearly is only worth it for truly irreplaceable data.

Two things worth checking on the borgbase side:

  1. Prune actually runs — restic forget without –prune (or borg prune vs borg delete semantics) marks snapshots but never frees repo space. Plenty of people run forget for years and wonder why the repo is full.
  2. Restore tests, not just snapshots — quarterly, restore into a scratch VM. A backup that’s never been restored is a hypothesis.

“Keep forever” mostly comes from cheap snapshot storage, but with churn-heavy data old daily snapshots are exactly where dedup saves you the least — the churn is your storage cost there.

Replying to @⁨gwheel@lemmy.zip⁩

I just rsync a full backup of my NAS’s entire RAID array every week to a separate machine. I have Proxmox set up with an NFS mount to the NAS where it stores all of the /[userdata] volumes that my VMs and LXCs use; Proxmox itself is hosted on 3x office PCs, each with i7-7700/500GB SSD/32GB RAM, and set up for replication in case one goes down. On occasion I’ll actually document which services I’m using, so I don’t really bother backing those up since the volume(s) holding the userdata itself is backed up and can be easily remapped to a new instance of whatever service needs it.