core-admin/core
Marek Marczykowski-Górecki 8275e828af
backup: move existing directories out of the way during restore
In most cases it would be some leftover after failed restore, or even
the reason why the user is restoring a VM in the first place. Move it to
nearby directory, but do not remove - backup tool should _never_ remove
any data.

When the pre-existing directory would not be moved, restore utility
(`shutil.move`) would place the data inside of that directory, with
additional directory level (for example `/var/lib/qubes/appvms/work/work`),
which would be wrong and would later fail on `vm.verify_files`. And more
importantly - such VM would not work.

Fixes QubesOS/qubes-issues#1386
2015-11-07 05:03:54 +01:00
..
storage core: use vm.absolute_path to parse paths in qubes.xml 2015-09-04 01:58:53 +02:00
tests qubesutils.py: get_disk_usage 2014-04-24 21:50:12 +02:00
__init__.py Move all files one level up 2013-03-16 19:56:51 +01:00
.gitignore Move all files one level up 2013-03-16 19:56:51 +01:00
backup.py backup: move existing directories out of the way during restore 2015-11-07 05:03:54 +01:00
guihelpers.py Fixed PyQt4 import in guihelpers 2014-11-19 12:50:31 +01:00
Makefile makefile: Improve readability of settings.py install command 2014-11-19 12:50:26 +01:00
modules add convenient symlinks simulating target python files layout 2014-03-10 01:05:01 +01:00
notify.py core: fix imports 2014-11-19 12:50:32 +01:00
qubes.py utils/QubesWatch: register libvirt event loop only when really launched 2015-11-07 03:51:51 +01:00
qubesutils.py utils/QubesWatch: register libvirt event loop only when really launched 2015-11-07 03:51:51 +01:00
settings-wni-Windows_NT.py settings-wni: get installation directory from windows registry 2014-11-19 12:50:31 +01:00
settings-xen-Linux.py core/xen: setup xen-specific defaults in separate settings file 2014-11-19 12:50:26 +01:00