[SOLVED] Proxmox as NFS NAS, how to offsite backup data drives?

tig3r

Member
Jan 29, 2023
13
1
8
Hi

I would just like to get some suggestions in what way I should go..
Today I have my main server as a Proxmox host, running a few VMs (hass, unifi, minecraft-server ect.). And I have a few drives (EXT4) just mounted as NFS-share as storage on my home network, mainly for raw data from drone clips (huge sizes!) + pictures and i additionally keep a copy of family photos and document backups. Planing to add immich or similar as a VM or LXC, and store the pictures on the NFS share.
I do have physical external backups from the storage, but it's not automated so I don't do it often enough. And since it's all in the same house I have recently put a small host "offsite" with enough drive capacity to make backups of the important part of the NFS share. I do have knowledge how to make a tunnel to the offsite host, and I think I could solve some sort of backup with rsync + crontab.. But if there is a gui-way that is a bit easier i would prefer that. I think i would like to have an option for encryption on offsite server as well.

I did try and kind succeed in making a backup off my "backup folder" on my main home server to the offsite host but it's not convenient to use and I have no good visual control and it would probably be a set up and forget solution and i would fail to see if it breaks.
First ssh a tunnel to the offsite, then decrypt and mount a luks encrypted drive on the offsite, rsync the "backup folder", umount and lock the drive.

But as I stated there probably is a better, easier way. PBS didn't seem to be of any use for backup a drive or a folder, more for backing up VM/CT ect. and I think proxmox default backup solution on the host is all i need for making snapshots of my VM's. It's the data drives i need to find a solution for.
 
Last edited:
I will mark this a solved, and i could do a better explaining of my "setup" if anyone find this and have questions.
But in short, I made a unprivileged LXC on both my server and my offsite server, just a basic Debian one, then installed restic and restic + "Backrest" GUI on main server.
Mapped a user and group for access to the hosts mounted drives, set up a ssh-key-file for tunneling (I am already using ddclient for DDNS) and then its pretty much just straight forward in the GUI create a user, a repo, add dirs/files and and voila you got your self a offsite backup.

Restore from backup is pretty easy to do from GUI but remember that its done inside the LXC so you might want to mount a second drive or so..

Encrypted backup and transfer.
Setup was a bit tricky but pretty much as i explained, but usage is fairly easy. Seems to exist Backrest client for windows as well.
Whats still left to do for my sake is some sort of notifying when things go well and ofc if they hit the fan, out of disk space ect.


Enjoy!