Hey there, I have a (very) small Ubuntu server and I was dabbling on the idea to do system backups (entire system, meaning, if the disk of the said pc fries, I can get another one, put the info from the backup on the new disk, works immediately afterwards). I have a couple of Linux mint machines and a windows one. I searched a lot out there and found several names, from rsync to Borg backup.But ultimately I don’t really know if these solutions would fit my use case.
So the question is: is there a feasible way/service that can be self hosted to do backups of local machines, similar to an image backup? Or, if you believe there are better ways to do it, can you please mention it?
Thanks in advance
https://github.com/teejee2008/timeshift
I think TimeShift could maybe work for you, but you might need a script to offload the backups it creates.
Restic is another option, but it’s a little less user friendly and is all CLI, if i recall correctly. However I’m pretty sure you can send backups straight to a server via Restic.
I think Borg Backup would fit your needs. You would still need to reinstall things like a boot sector and recreated partitions but on the other hand file based backups have the advantage that you can restore individual files when needed too and that it is easier to only backup what changed. Just make sure to exclude any temporary files you don’t want to keep from the backup (e.g. cache dirs, log files that get rewritten often and aren’t relevant long-term,…).
If you’re up for it, it’s generally better to not backup everything. Only backup the data that you need. Like a database. Or photos, music, movies, etc. for personal data. For everything else, it’s best to automate the install and maintenance of your server.
Disclaimer: this does take more effort!
REAR Relax-and-Recover will do entire system point-in-time snapshot backups to a bootable iso or physical USB thumb drive: https://relax-and-recover.org/rear-user-guide/index.html
I use rear for backing up my root, and Borg for packing up user data (for versioning, file recovery), but you can use rear for the entire system too.
I use Veeam Backup & Recovery Community Edition. If you’re runing VM’s you have to be on VMWare or Hyper-V. You can also use agents on the individual VM/Server. It also requires a pretty hefty Windows host, at least if you want your backups to complete fairly quickly.
Those are understandably downsides for some people. But, Veeam is in a class by itself. It has no serious competitors and as far as ease of use and reliability, it’s top tier.
I’m lazy. I don’t want to spend a bunch of time configuring finicky backups only to find out I needed one and it failed. I honestly wish there were a comparable open source backup system. I have yet to find anything that works as well.
New Lemmy Post: entire system backups onto the server - how? (https://lemmy.world/post/10669195)
Tagging: #SelfHosted(Replying in the OP of this thread (NOT THIS BOT!) will appear as a comment in the lemmy discussion.)
I am a FOSS bot. Check my README: https://github.com/db0/lemmy-tagginator/blob/main/README.md
you could use btrfs snapshots of the volumes you want to preserve. then send the snapshot to a remote location.
if the ssd fries you just need to download the snapshots and restore their layout.
i have a script for it and i use it on my server: https://github.com/simone-viozzi/btrfs2cloud-backup