Commit 07954fcc authored by Kristian Feldsam's avatar Kristian Feldsam

Updated borg create cmd

Signed-off-by: Kristian Feldsam's avatarKristián Feldsam <feldsam@gmail.com>
parent 1a27fb11
......@@ -191,6 +191,6 @@ def backup(image, verbose):
def borgbackup(name, dev):
try:
return subprocess.check_output('borg create -v --stats --read-special %s::%s-{now} %s' % (config.BACKUP_REPO, name, dev), shell=True)
return subprocess.check_output('borg create --read-special --compression auto,zstd,3 -v --progress %s::%s-{now} %s' % (config.BACKUP_REPO, name, dev), shell=True)
except subprocess.CalledProcessError as ex:
raise Exception('Can not backup dev using borgbackup!', ex)
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment