Proxmox Backup Server with PI/NFS … is it possible?
Hello r/selfhosted I have a proxmox homelab, on which I have deployed some side projects in kubernetes, gitea, WireGuard, jellyfin, and a few other small VMs running various services. Now it’s getting to the point after about a year of use that I want to…
Hello r/selfhosted I have a proxmox homelab, on which I have deployed some side projects in kubernetes, gitea, WireGuard, jellyfin, and a few other small VMs running various services. Now it’s getting to the point after about a year of use that I want to start thinking of backup solutions (I know, I know….). I have a really old raspberry pi 1.2 B+ and a 500GB USB HDD from a loooooong time ago that I want to put to use (trying to save a buck). Due to these constraints, I want to open the following for discussion: I’m a professional software developer with ~5YOE (back end) and I’m imagining my own tiny workflow engine with Java/Spring Boot which….. * powers on the pi/drive via a smart plug (pi runs NFS server) *waits for the pi to start, waits for the drive (mapped to NFS) to come online *requests to start the PBS VM on my proxmox host & waits for it to come online *requests to start the backups on the PBS vm *requests to verify the backups on the PBS vm *asks the proxmox host to stop the PBS VM & waits for it to shut down *ssh into the pi to shutdown. Wait until stops ressponding to pings * finally, shut off the pi with the smart plug On success/fail of the workflow, I’ll push a notification to my phone as appropriate I’m curious if anyone sees any holes in my plan, or knows of any projects that might fill this gap. Maybe it is a stupid idea to rely on that old hardware for backups….. but part of the fun for me is going to be doing this little workflow so the old hardware isn’t on 24/7 (especially the USB HDD) Thanks for reading!
已收录讨论
Expand the replies to this comment to learn how AI was used in this post/project.
I didn’t know S3 was an option Thanks for the heads up on TLS… I’m already running trusty old nginx. I was already considering adding garage for some of the apps I am deploying and developing in the lab. This might be an avenue to explore. Most of what I was trying to do with the workflow to power on/off the pi was to save the crappy old USB HDD from being on 24/7 (I just can’t bring myself to pay for storage today. Even HDD let alone SSD) The vm cycle was to prevent weirdness with PBS not seeing the NFS while the pi was down Thanks for the informatio, appreciate it!!
Keep in mind that PBS will also do verification and pruning jobs for the backups. You'll need to have the VM up for those too.
There are no prebuilt versions for ARM, but it's all Rust, C and Perl. Nothing that isn't portable. I bet you could even get it to run under different UNIX OSes if you were inclined to do it.
NFS suuuuuccckkks. Don't use NFS. PBS supports S3 now. Run garage on your RPi via docker. Proxmox requires TLS for S3, so you need a reverse proxy too. I used caddy (also on docker). Config file was a few lines. Run the few commands to provision a bucket and API key, throw them into PBS and you're good to go. IMO you're over-engineering the solution. I guess if you really want to save a couple watts you could turn the pi on and off, but cycling the VM is pointless. Don't forget to back up the PBS VM. You can't back it up to itself, but you can use a regular PVE backup to a PVE storage (like local disk), then set up a systemd timer to manually back it up to PBS->S3. You could then delete the local dump if you want. You lose the incremental+dedupe that PBS gives you, but my whole PBS backup with 14 snapshots is around 30GB.
PBS requires a x64 cpu, won't run on arm unless you want to use forked repos from github. https://pbs.proxmox.com/docs/installation.html#system-requirements Edit: missed the part with PBS as VM, only NFS on the pi. That would work, but very slow. Did something similar with NFS on a Synology NAS, and the NAS was the bottleneck (DS418 - did roughly 50MB/s at best)