Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FeldHost Public Projects
OpenNebula 3PAR Backup
Commits
0faa441a
Commit
0faa441a
authored
Apr 17, 2021
by
Kristian Feldsam
Browse files
Changed borg compression to LZ4
Signed-off-by:
Kristian Feldsam
<
feldsam@gmail.com
>
parent
08e9282b
Changes
1
Hide whitespace changes
Inline
Side-by-side
drivers/_3par.py
View file @
0faa441a
...
...
@@ -246,7 +246,7 @@ def borgbackup(image_id, dev, size_mb, bs):
borginit
(
image_id
)
try
:
return
subprocess
.
check_output
(
'dd if=%s bs=%s | pv -pterab -s %d | borg create --compression
auto,zstd,3
%s/%s::{now} -'
%
(
dev
,
bs
,
size
,
config
.
BACKUP_PATH
,
image_id
),
shell
=
True
)
return
subprocess
.
check_output
(
'dd if=%s bs=%s | pv -pterab -s %d | borg create --compression
lz4
%s/%s::{now} -'
%
(
dev
,
bs
,
size
,
config
.
BACKUP_PATH
,
image_id
),
shell
=
True
)
except
subprocess
.
CalledProcessError
as
ex
:
raise
Exception
(
'Can not backup dev using borgbackup!'
,
ex
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment