key_length=key_length)
def create_full_backup(self, source_path, backup_path,
- max_volume_size=None, extra_data=dict(),
- dir_perms=0o077, file_perms=0o066):
+ max_volume_size=None, extra_data=dict()):
'''
Creates a full backup.
# try to create backup path if needed
if not os.path.exists(backup_path):
- os.makedirs(backup_path, dir_perms)
+ os.makedirs(backup_path)
if not os.access(backup_path, os.W_OK):
raise Exception('Backup path "%s" is not writeable' % backup_path)
tarobj.close()
def create_diff_backup(self, source_path, backup_path, previous_index_path,
- max_volume_size=None, extra_data=dict(),
- dir_perms=0o077, file_perms=0o066):
+ max_volume_size=None, extra_data=dict()):
'''
Creates a backup.
# try to create backup path if needed
if not os.path.exists(backup_path):
- os.makedirs(backup_path, dir_perms)
+ os.makedirs(backup_path)
if not os.access(backup_path, os.W_OK):
raise Exception('Backup path "%s" is not writeable' % backup_path)