Quote from: DeepDayze on April 18, 2024, 01:41:59 PMBummer. Fsarchiver as a backup/restore tool for BTRFS then is no bueno. There should be some sort of override so that you can restore a BTRFS .fsa with its original UUID.
Quote from: VastOne on August 12, 2023, 08:04:51 PMHey RatMan.. I am parking this here because it makes sense since there is so much How To discussion on using fsarchiver.. In using btrfs exclusively I ran into an issue where I could not get fsarchiver to restore my main root partition that I do all my work on. Since I use nVidia, occasionally I get a broken system due to a nVidia upgrade where I need to wait a day or more for nVidia to fix and release the code.. So I keep a near weekly backup of my current system and restore it to a secondary disk on the same machine.. In all my work with ext4, it never had any issues with uuid's, in fact it gives no shits about how you want to restore to, btrfs on the other hand does. Fsarchiver will not restore a btrfs file system to the machine if it detects the same uuid already on that machine, it spits out an error and life goes on.Bummer. Fsarchiver as a backup/restore tool for BTRFS then is no bueno. There should be some sort of override so that you can restore a BTRFS .fsa with its original UUID.
Still have the issue though and needed a solution other than creating snapshots (story for another day) and began a search that led me straight to the fsarchiver manpages and a solution which made fsarchiver that much more an incredible tool IMO.. there is a uuid option to change the uuid on the restore! Below is the fsarchive command to generate it and also a cool site that generates random uuid's
Get a random uuid here: Random UUID (v4) generatorsudo fsarchiver -v restfs vsido_btrfs_23DEC2023.fsa id=0,dest=/dev/sdXX,uuid=ea33a312-71f8-4172-b3c9-027ca7f4264a
The uuid in that example is one I pulled for that site DO NOT USE IT, get your own!
sudo adduser yourusername
sudo usermod -aG sudo yourusername
passwd root