A wrapper script for Borg backup software that creates and prunes backups
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
430B

  1. import os
  2. def initialize(storage_config):
  3. passcommand = storage_config.get('encryption_passcommand')
  4. if passcommand:
  5. os.environ['BORG_PASSCOMMAND'] = passcommand
  6. passphrase = storage_config.get('encryption_passphrase')
  7. if passphrase:
  8. os.environ['BORG_PASSPHRASE'] = passphrase
  9. ssh_command = storage_config.get('ssh_command')
  10. if ssh_command:
  11. os.environ['BORG_RSH'] = ssh_command