Iâm trying to provide an answer to the original question: why I didnât back up and why I donât right now.
TL;DR the different problems encountered were:
- how to connect an encrypted hard drive to a backup qube? (just need a good guide?)
- how to store the backup passphrase?
- it tooks too long to attach an external hard drive, decrypt it, attach the new block to a backup qube and launch the backup procedure manually without a script (already mentioned)
- the need of a deduplicated way to back up without external tool and custom scripts (already mentioned)
- a big hard drive to store the backup from Qubes Backup, in order to keep some older copies (already mentioned)
I believe that, starting with Qubes OS, doing a backup of the system was one of my first goals. But I donât know why I havenât tried to do it quickly. Maybe I got a bit lost on how to get back my previous systemâs data into different qubes and doing a backup of almost nothing wasnât appealing? Reading the documentation once again right now, it seems quite clear how to do the backup, but maybe itâs lacking tips on how to connect an encrypted USB hard drive to the âbackupâ qube? I remember having a hard time on this, altough with a good tutorial it should not be difficult.
Another problem: how to manage the passphrase? I didnât want to use the same passphrase between the backup file and the LUKS encryption. So I just stored it next to the backup⊠After some reflection, I came to this solution: the passphrase is stored in the vault qube, and I back up this qubeâs data in a second logical volume on the backup hard drive. Itâs not perfect, as the access to the hard drive is critical.
So, my first backups using Qubes Backup were a bit long, but acceptable. Maybe I had some doubts about the space needed, in order to keep some old backups. I seem to recall that the whole process was a bit painful: attaching the drive to a qube used to decrypt the LUKS container, then attaching the logical volume to the backup qube.
I think I still wasnât sure if I would be able to restore my Qubes OS installation with this file. It seemed like a big enigmatic file. But it was pure laziness, as the restoration process seems quite easy right now.
But after putting all my previous data in Qubes OS, the process became too long and buggy. So, after trying a few times to back up the whole thing (about 2To), and seeing a failure, I stopped doing backups. I wrote a script to run qvm-backup
on each qube, in order to avoid the backup failure.
I also wrote a script to automate the disk decryption process. But, still, I had some qube, like one with 500Go of data, with only minor changes to track, and the Qubes Backup tool seemed unefficient. I need to add that I had not enough space to sleep without being next to my computer, and sometimes Iâve got some restrictions of power supply so, letting the computer backup while sleeping means bad sleep.
So I wrote another script to attach a logical volume of the backup drive to each qube and to do a backup of the data with borg
.
In the same time, I learned how to use salt
to at least install programs in templates. I had to write a script (yes, again!) to back up /srv/user_salt
⊠So, right now, Iâm only using Qubes Backup in order to back up dom0, debian-12-minimal template, vault qube, backup qube and a disks-manager qubes that serves to decrypt the backup drive.
Between the failure of the backup of all data and the writing of functional scripts, I had no recent backup. After this, I wasnât sure if this backup process was correct. Luckily, I had to change my machine, so I wrote the restore part of my backup script and I tried it on the new machine.
Right now, if Iâm not doing a backup of a qube, itâs because I need to do some manual steps to be able to use my custom backup script, like creating a LVM logical volume on the backup drive. But thatâs on me.