How to set up backup for media files on Proxmox?
from 1Fuji2Taka3Nasubi@piefed.zip to selfhosted@lemmy.world on 15 Sep 06:40
https://piefed.zip/post/470240

I am trying to set up a home server. Here is how I’m planning to do it:

/dev/nvme0n1 SSD, Proxmox, VMs & CTs /dev/sda HDD, Media library /dev/sdb HDD, Backup

I’ve installed Proxmox on the NVMe SSD and created a few VMs and CTs to play with.

I have also partitioned /dev/sda and created a ZFS partition on /dev/sda1, made a pool /pool and a datastore /pool/data.

I plan to put media files on /pool/data, bind mount it on a container and run Jellyfin to serve them.

I can schedule backup jobs for the VMs and CTs themselves on Proxmox, but I’m not sure how to backup the media files on /pool/data to /dev/sdb.

  1. How would one go about setting up such backups? Do I need to setup something like a cronjob with rsync or is there some easier ready-made solution? Ideally it’d be something like Proxmox’s VM backup jobs that let me prune and keep some copies daily / weekly / monthly / yearly.

  2. What filesystem should I use for the backup drive / partition? Is there advantage of using ZFS to backup ZFS?

  3. Can ZFS snapshots be used on /pool/data for additional protection? If so how do I set up, for example, automatic daily snapshots? Do snapshots take up little space if the files rarely change?

Thanks.

#selfhosted

threaded - newest

suicidaleggroll@lemmy.world on 15 Sep 13:57 next collapse

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.

non_burglar@lemmy.world on 15 Sep 14:26 next collapse

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.

sonstwas@sh.itjust.works on 15 Sep 20:59 collapse

Cause I was looking for it anyway: klarasystems.com/…/openzfs-storage-best-practices…

TieDyePie@lemmy.world on 15 Sep 21:08 collapse

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