-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Jason M wrote:
>
>
> On Sunday, 15 March 2015 14:44:22 UTC-4, cprise wrote:
>>
>>> $ qvm-backup-restore --help Usage: qvm-backup-restore [options]
>>> <backup-dir> [vms-to-be-restored
>> ...]
>>
>>
>>
>> The above, plus the options list, is all I have for documentation
>> of this command. The wiki entry is empty and there are no
>> examples of usage. In particular, I can't figure out what
>> "backup-dir" means. I think the path to the backup file should go
>> there, but...?
>>
>> Also, I need to do a separate restore of dom0 without disturbing
>> the contents of the new dom0. But from reading the source code, I
>> think that is the opposite of what actually happens...?
>>
By default, restoring dom0's home dir from a backup should first move
the existing contents of dom0's home dir to a new appropriately-named
subdirectory.
Note there's also a "--skip-dom0-home" option, in case you want to
handle it separately.
>
> try: qvm-backup-restore --help. You can select which appvms to
> restore. I do not think any templates VMs ever get backed up even
> though they are selected to be in backup for some reason, at least
> not for me; I have a script that's backs those up as well as
> complete root.
>
This only applies to "system-managed" templates (e.g., fedora-20-x64
and fedora-20-x64-minimal). This is by design, since these templates
may periodically be updated in ways that might break user
customizations in the template. For this reason, users are advised to
clone these templates before making any changes.
> The restore only restores your dom0 home directory and the files in
> /var/lib/qubes I believe; so move any appvms with same name out of
> the way (clone them; remove old copy I would think).
Renaming the existing same-name AppVMs also works.
> A snapshot is a good idea; don't have any experience with LVM
> though.
>
> qvm-backup-restore --encrypted /location/of/file
>
> I use btrfs as my filesystem, so I just create a subdirectory
> `/.snapshots` then `btrfs su sn -r /
> /.snapshots/root-date-of-snap`, and in 1 second I have a complete
> snapshot of system I can restore to.
>
> You could also consider to make a copy of the `/var/lib/qubes`
> directory of you can not do snapshot.
>
> Good luck.
>
-----BEGIN PGP SIGNATURE-----
iQIcBAEBCgAGBQJVBpnlAAoJEJh4Btx1RPV8LAAQAJRyy45z8Kfe84r1Zax6y7Zm
GzYYeGtwGwXJoQcirtbc/Eu8+C+pn5RAJQduE4hKPiIkaqteDJAaPDHe6Ph0maPz
RndqW3ofEydu1cVq+SGrFzH2xSwuoBAsDChvDSfT3IAtBluFn0I5DOB1UcCiO5if
JJvdNZMzUf/6npHCH7Txbbn+2TzASXqXi5uB6TN/u6ZosgQg2Vp0wbqOjroT52Z2
UtkTEeUkB1X+itks/wDSNYLhjTw8P36uhpcm+El7NnCriBfjhDto4m/Nk+l+icVJ
KzowW1CpZp6gvB0XM9nxtaLU/KsfqCsTEvDd7+nwFaNeH5i9gJxSwO1iwGByvr/E
NsWn+rUBHuIuw6CzryzeSaM4OaDNCctr2xB3GXx2ydDCOOKtUzfFHNkhnggrBCnH
a5VUZrlW1lee9yFjLky7w248vZylr3863twqjbJm1qPWVry1Z1AXlw49fnEv5yhA
SFVComk3cqXeAmKMsZG2iegx1oD+fN50Ic8NDpmy0p3ouguwRIO/KZEMFpWM0yVu
Qj++B1yuC14WJNSwaDzO3Tx2zanCg2whxc+XvYQEhLtKVtVQni9a/FpR3hiDBXbC
FgDir3cyTxFEMUHkiLT0DTnY4H/pPMLWvSHCIoPPfgvAP08N5cUQTPbd8IOvjrNq
tu/0ECc3InHKDH7sf/qa
=GLnf
-----END PGP SIGNATURE-----