Browse Source

config: source_host and encrypt_key optional

Fabian Peter Hammerle 7 years ago
parent
commit
eeef8ca8cd
1 changed files with 4 additions and 0 deletions
  1. 4 0
      scripts/duplitab

+ 4 - 0
scripts/duplitab

@@ -182,6 +182,10 @@ def run(command, config_path, quiet, duplicity_verbosity,
     for backup_attr in config:
         if not 'source_type' in backup_attr:
             backup_attr['source_type'] = 'local'
+        if not 'source_host' in backup_attr:
+            backup_attr['source_host'] = None
+        if not 'encrypt_key' in backup_attr:
+            backup_attr['encrypt_key'] = None
 
     filtered_config = []
     for backup_attr in config: