From 50662bf090860b826eeaef53bf4c2d9da9f3a0c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 26 Nov 2013 16:46:09 +0100 Subject: [PATCH] backups: correctly calculate size of file to backup --- core/backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/backup.py b/core/backup.py index 1d472c80..fbf2c7ff 100644 --- a/core/backup.py +++ b/core/backup.py @@ -52,7 +52,7 @@ def get_disk_usage(file_or_dir): def file_to_backup (file_path, sz = None): if sz is None: - sz = os.path.getsize (system_path["qubes_store_filename"]) + sz = get_disk_usage (file_path) abs_file_path = os.path.abspath (file_path) abs_base_dir = os.path.abspath (system_path["qubes_base_dir"]) + '/'