I’ve been considering what will happen when Fedora 28 support runs out, and dreading a borked upgrade thanks to all the rpmfusion repos I’ve added. Even though my “workstation” (gamestation? Vulkan lab?) is not mission critical, it would take quite a bit to rebuild.
First subject I want to ask about is online vs offline backup. My first thought to approaching this would be to boot a live USB, then use dd to pipe an image of my 1TB main drive to gzip and then write that out to my 4TB external USB 3.0 drive. But it’s formatted NTFS and already has some important files on it, so I’m not sure that’s a great idea.
I’m also in the process of “deploying” a storage server, but currently only have 3x1TB drives in a RAID5 array. I haven’t set up NFS or iSCSI yet, so that’s one more obstacle to progress. Bandwidth and I/O may also be a problem; my network is 1Gb/s through a cheap Netgear router flashed with DD-WRT.
Any thoughts on how I can back this thing up with the on-hand resources?
Yeah, I think just dd the whole drive to an image file somewhere and then restore it via live usb if you ever need to. LVM snapshots make this process a little easier, but you do sacrifice some simplicity and potentially some performance.
I think you might need to do the backup while the OS is offline (again from a live usb).
Maybe rsnapshot or rdiff-backup end up being useful to you.
Snapshots in the filesystem or on the block device are useful if you’re backing up while actively using the machine, they help freeze the contents of files while your backup is reading them.
These are good tools, and if you are more concerned with preserving data, these are better than dd. The advantage of dd is that it allows you to restore an entire device including partitions. rsync-based tools will provide you with files, but you will need to manually repartition, format, etc if you have to restore the whole OS.
In general if you backup all the files, you can restore by re-making partitions and restoring all the files.
It’s also possible to convert from ext4 to btrfs in place, and btrfs can get you snapshots.
Lots of people don’t trust btrfs, but then again it gets you snapshots, checksumming and easy conversions between raid levels, feature set generally comparable to zfs. I’ve been using it
on both of my home built nas-es for a while now without any issues (other than some broken drives).
As of the last few releases rpmfusion is in sync with fedora. So you should have a clean upgrade path on or close to the fedora release date with those repos.
A subset of rpmfusion is officially supported by fedora as well as a ‘first party’ third party repo. You can see it in the software centre.
Other repos you need to keep an eye out until they are up to date but as you don’t use them you shouldn’t have issues.
Backups of your data are still important so the topic is very valid. Just thought id bring up the update issue you mentioned.
Backup completed - after about 12 hours. Don’t want to do that on a regular basis. Thanks for the input.
On the subject of time - is there any way to complete this more quickly next time? Even though I backed up with ‘gzip --fast’, it still took a very long time to complete. Initially the file was reading at 35MB/s but quickly slowed to 20MB/s. I’m not sure if my USB 3.0 hard drive was only transferring at USB 2.0 speeds, or gzip was really that slow.
While it’s true that rsync will just backup files, ATM I don’t really have an external drive with a large enough ext4 partition to back them up to.
While I was doing the backup, I did notice that gzip was only using 80%-85% of one core. I looked it up and found out about pigz. However, I’m not sure how I’d go about getting pigz onto a Live USB.
On a live USB, apt-get install pigz… assuming you have network working.
You could ask rsync to list files only , and only pass filenames of files that are different to tar, or mksquashfs. Your restores become more complicated, but still feasible.
One thing that doesn’t do, is it doesn’t take care of content moving around, e.g. if you reorganize videos in your home dir.
There was this thing called casync, not sure what it feels like to use.