73
submitted 5 days ago by Sunny@slrpnk.net to c/selfhosted@lemmy.world

Basically title. I'm in the process of setting up a proper backup for my configured containers on Unraid and I'm wondering how often I should run my backup script. Right now, I have a cron job set to run on Monday and Friday nights, is this too frequent? Whats your schedule and do you strictly backup your appdata (container configs), or is there other data you include in your backups?

(page 2) 14 comments
sorted by: hot top controversial new old
[-] HeyJoe@lemmy.world 2 points 4 days ago

I honestly don't have too much to back up, so I run one full backup job every Sunday for different directories I care about. They run a check on the directory and only back up any changes or new files. I don't have the space to backup everything, so I only take the smaller stuff and most important. The backup software also allows live monitoring if I enable it, so some of my jobs I have that turned on since I didn't see any reason not to. I reuse the NAS drives that report errors that I replace with new ones to save on money. So far, so good.

Backup software is Bvckup2, and reddit was a huge fan of it years ago, so I gave it a try. It was super cheap for a lifetime license at the time, and it's super lightweight. Sorry, there is no Linux version.

[-] infinitevalence@discuss.online 2 points 4 days ago

Depends on the application. I run a nightly backup of a few VM's because realistically they dont change much. I have containers on the other hand that run critical (to me) systems like my photo backup and they are backed up twice a day.

[-] truxnell@infosec.pub 2 points 4 days ago

Daily backups. Currently using restic on my NixOS servers. To avoid data corruption, I make a zfs snapshot at 2am, and after that restic does a backup of my mutable data dirs both to my local Nas and CloudFlare r3. The Nas backup folder is synced to backblaze nightly as well for a more cold store.

[-] avidamoeba@lemmy.ca 2 points 4 days ago* (last edited 4 days ago)

Every hour. Could do it more frequently if needed.

It depends on how resource intensive the backup process is.

Consider an 800GB Immich instance.

Using Duplicity or rsync takes 1 hour per backup. 99% of the time is spent in traversing the directory structure and checking which files have changed. 1% is spent into transferring the difference to the backup. Any backup system that operates on top of the file system would take this much. In addition, unless you're using something that can take snapshots of the filesystem, you have to stop Immich during the backup process in order to prevent backing up an invalid app state.

Using ZFS send on the other hand (with syncoid) takes less than 5 seconds to discover the differences and the rest of the time is spent on the data transfer, at 100MB/s in my case. Since ZFS send is based on snapshots, I don't have to stop the service either.

When I used Duplicity to backup, I would backup once week because the backup process was long and heavy on the disk array. Since I switched to ZFS send, I do it once an hour because there's almost no visible impact.

I'm now in the process of migrating my laptop to ZFS on root in order to be able to utilize ZFS send for regular full system backups. If successful, eventually I'll move all my machines to ZFS on root.

[-] papertowels@mander.xyz 2 points 4 days ago

And equally important, how do you do your backups? What system and to where?

[-] AMillionMonkeys@lemmy.world 2 points 5 days ago

I tried Kopia but it was unstable and janky, so now it's whenever I remember to manually run a bunch of rsync. I backup my desktop to cold storage on the first of the month, so I should get in the habit of backing up my server to the NAS then also.

[-] ocean@lemmy.selfhostcat.com 2 points 5 days ago

Depends on the system but weekly at least

[-] metaStatic@kbin.earth 2 points 5 days ago

Thanks for reminding me to validate.

Daily here also.

[-] Jozav@lemmy.world 2 points 5 days ago

Using Kopia, backups are made multiple times per day to Google drive. Only changes are transferred.

Configurations are backed up once per week and manually, stored 4 weeks. Websites and NextCloud data is backed up every hour and stored for a year (although I'm doing this only 7 months now).

Kopia is magic, recommended!

[-] Andres4NY@social.ridetrans.it 1 points 5 days ago

@Sunny Backups are done weekly, using Restic (and with '--read-data-subset=9%' to verify that the backup data is still valid).

But that's also in addition to doing nightly Snapraid syncs for larger media, and Syncthing for photos & documents (which means I have copies on 2+ machines).

load more comments
view more: ‹ prev next ›
this post was submitted on 17 Feb 2025
73 points (100.0% liked)

Selfhosted

42717 readers
274 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS