Don’t stick your backups on a drive that’s plugged into the same machine as the primary copy, it defeats almost the entire purpose of having a backup.
Selfhosted
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:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
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.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
I use healthchecks.io to alert me if any backups dont fire on time or have error states, free to use and a nice first line when I can't keep an eye on it regularly
Here is what I have on a cheap tower server:
- Proxmox OS on mirrored zfs pool on two internal SSDs.
- Data pool on mirrored zfs pool on two internal NVMEs.
- Externally attached NVMe via usb3.1.
When I spin up VMs, they are on the internal NVMe zpool. They are backed up to the external NVMe.
I have performed disaster recovery of my Jellyfin VM and other VMs from the external NVMe to internal NVMe. When the server dies, I can fix it or buy a new server and restore the VMs from the external NVMe.
Hope this helps!
If the target is zfs, use zfs send. If the target is anything else, rsync.
Schedule it with cron.
Be aware that with zfs snapshots, you need to replay them to restore, which means you'll periodically need to do a full backup. ClaraSystems has a number of guides on how to create zfs datasets to make efficient backups the way you want.
Edit: KlaraSystems, sorry.
Cause I was looking for it anyway: https://klarasystems.com/articles/openzfs-storage-best-practices-and-use-cases-part-1-snapshots-and-backups/