Automated incremental and synthetic full system backup and bare metal + file level restoration for FreeBSD reddit / BSD ---------------------------------------------------------------------- jdrch · 2019-03-08 20:07 I'm looking for something that enables automated incremental, synthetic full system backup and bare metal + file level restoration on FreeBSD. Basically I'm looking for a Veeam equivalent. ​ The only constraints are: 1. No VMs or containerization required. 2. No additional BSD PC required. I have Windows 10 and Ubuntu PCs that can serve as backup targets. 3. Backup target must be a different machine. ​ Any ideas? ---------------------------------------------------------------------- evilprofessor · 2019-03-08 21:33 Zfs ---------------------------------------------------------------------- jdrch · 2019-03-08 21:41 Hmmm so how does this sound: 1. Add HDD to Ubuntu 18.10 PC 2. Format new HDD as ZFS 3. Create new ZFS pool including said HDD (I may have Steps 2 and 3 confused) 4. Create folder on said ZFS pool 5. Share ZFS folder using NFS 6. Have FreeBSD mount NFS folder and do full ZFS backup to it via a cron job Is that what I should do? ---------------------------------------------------------------------- evilprofessor · 2019-03-08 21:49 Freebsd installed on zfs. Take backup/snapshot. Remote system (ubuntu/debian) with a 'remote backup pool' on zfs. Zfs send the snapshot to ubuntu ---------------------------------------------------------------------- jdrch · 2019-03-08 21:55 Ah OK. Sounds like a weekend project. Thanks! ---------------------------------------------------------------------- jdrch · 2019-03-08 22:12 Let's say hypothetically I do a full ZFS backup to my Ubuntu 18.10 PC and my BSD SSD crashes. What would the process of restoring the entire BSD installation - settings, data and all - from that backup to a new SSD look like? ---------------------------------------------------------------------- poshpotdllr · 2019-03-08 22:13 borg, restic, zfs. /thread ---------------------------------------------------------------------- jdrch · 2019-03-08 22:15 > borg, restic Considered those recently. Borg's own devs don't sound very confident in it in the documentation. Too many warnings about version number incompatibilies and "this might not work" disclaimers. The last thing a backup solution should do is give the user the impression it's *very likely* to fail catastrophically. That's the vibe I get from Borg. Restic's documentation doesn't even mention shared folder targets. ---------------------------------------------------------------------- E39M5S62 · 2019-03-08 22:42 You need to use zfs send / zfs receive to do this, there's no involvement with NFS here. Take a look at znapzend in automating the creation / pruning of snapshots, as well as sending them to remote ZFS targets. Restoring the system is a bit more complicated, but doable for sure. You'll need to boot into a minimal FreeBSD recovery environment, send the ZFS snapshot from the backup server to your system, and then reinstall boot blocks. ---------------------------------------------------------------------- poshpotdllr · 2019-03-08 22:44 hmmm... borgs been around a looong time and nobody really complains. they might have just not updated the documentation but im no borg expert. i use it for what i do and it works. your requirements are a bit quirky. :) do everything locally with ZFS and then use restic for offsite/remote of your snapshots. ---------------------------------------------------------------------- jdrch · 2019-03-08 22:48 > nobody really complains No one also really uses it. There's a reason it's a niche tool that's not widely known. > not updated the documentation That's even worse! Are you being serious? **A backup solution with outdated documentation isn't a solution, it's a data loss attack.** Not to mention that outdated documentation flies in the face of what BSD stands for in general. > im no borg expert ... so you just discredited yourself? I'd bet $20 your Borg backups don't actually work. Oh, you think they do, but you'll find out the hard way when you try to do a major restore operation. ---------------------------------------------------------------------- jdrch · 2019-03-08 22:53 > there's no involvement with NFS here. Take a look at znapzend Interesting. So ZnapZend uses SSH. > reinstall boot blocks I have never heard of boot blocks before in my life. Could you elaborate on what they are? ---------------------------------------------------------------------- E39M5S62 · 2019-03-08 23:54 Your bootloader. ---------------------------------------------------------------------- jdrch · 2019-03-09 00:04 Thanks, TIL! ---------------------------------------------------------------------- poshpotdllr · 2019-03-09 00:27 brb lol ---------------------------------------------------------------------- E39M5S62 · 2019-03-09 01:16 There should be some good guides out there on full backup/recovery steps for FreeBSD, with ZFS. I've only done the process on Linux, but the concepts are identical.