dom0/backup: Allow to exclude dom0 home from backup

This commit is contained in:
Marek Marczykowski 2012-02-17 10:05:23 +01:00
parent 0a0a88650d
commit 277cdd9173

View File

@ -445,6 +445,7 @@ def backup_prepare(base_backup_dir, vms_list = None, exclude_list = [], print_ca
print_callback(s)
# Dom0 user home
if not 'dom0' in exclude_list:
local_user = grp.getgrnam('qubes').gr_mem[0]
home_dir = pwd.getpwnam(local_user).pw_dir
home_sz = get_disk_usage(home_dir)