-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Wed, Apr 03, 2019 at 03:24:39PM +0200, donoban wrote:
> Hi,
>
> I would like to switch a 512GB hard disk with a new 2TB and I think I
> will do a full reinstall with a backup restore.
>
> For this purpose, it would be nice to have some method for specify
> where restore each qube. Currently qvm-backup-restore says:
>
> usage: qvm-backup-restore [--verbose] [--quiet] [--help] [--verify-only]
> [--skip-broken] [--ignore-missing]
> [--skip-conflicting] [--rename-conflicting]
> [-x EXCLUDE] [--skip-dom0-home]
> [--ignore-username-mismatch]
> [--ignore-size-limit]
> [-d APPVM] [-p PASS_FILE]
> backup_location [vms [vms ...]]
>
> So I assume that currently there is no way for configure this.
You're correct. Right now the only way to restore to a specific pool is
to switch the default before restoring. But you can do that multiple
times, for example:
1. qubes-prefs default_pool pool1
2. qvm-backup-restore ... vm1 vm2 vm3
3. qubes-prefs default_pool pool2
4. qvm-backup-restore ... vm4 vm5 vm6
This way vm1-3 will go into pool1 and vm4-6 into pool2. It will take
some more time (the backup will be extracted twice), but you don't do
that so often...
> I would
> like to do something like this:
> backup_location [vms[:pool] [vms[:pool] ...]]
>
> And to use default pool if [:pool] is omitted. The idea is to restore
> all VM's in different pools with the same command and also port the
> functionally to GUI/Qube Manager.
>
> I did some research in current code and I found 'override_pool' in
> '
qubesadmin.backup.restore.py', but I can not determine if it is being
> used in practice.
No, it isn't. But also it isn't much different from changing the default, as it
select storage for all the VMs, not individual ones.
> Any ideas about this?
To be honest, I don't think restoring different VMs into different pools
is that common case to spend much time on it (you can do that already
using the procedure above). But if you'd like to work on this anyway,
IMO it would make sense to have separate qvm-backup-restore options for
default pool for templates and other VMs, instead of per-VM control.
- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAlykwBgACgkQ24/THMrX
1yzHqQf+OJtt8oq1n9hiq1c6HUqWxh2+cYAhc//2XzFWWGk2Iz9xrKEZe0znx3ig
SfMNuULTSp3ltLbjWAb+r2VNQbpvkF+hsiHRdOENoNj03W38dLlEXZkh/Rbw4SgL
7yrgcAStzv8yIq70pfa1mV05+VLLMlrsMUW+XY6fFUjhwlScnRkFSz+dF9HBzq4O
dtLWFKFIndee8QS29tSaM5xDV/zGydYO3xQkQX0HjODIOOPH8Z1KjaYk2AYMODjj
93quJJcIrqMOGUGmmGwjCjjBFKFcxX30402d6BuAHt9sWPNKxVJcwvpLfSZuIf+k
HoeHNcDpKeaNBzO0XeJsl/FUCcwuNA==
=2xCL
-----END PGP SIGNATURE-----