backups: refuse to create encrypted and compressed backup (#775)

This commit is contained in:
Marek Marczykowski-Górecki 2014-01-15 05:00:13 +01:00
parent 357fe37ed2
commit 26b32ca51e

View File

@ -379,6 +379,10 @@ def backup_do(base_backup_dir, files_to_backup, passphrase,
for file in files_to_backup:
total_backup_sz += file["size"]
if compressed and encrypted:
raise QubesException("Compressed and encrypted backups are not "
"supported (yet).")
vmproc = None
if appvm != None:
# Prepare the backup target (Qubes service call)