mirror of
https://github.com/YunoHost-Apps/borg_ynh.git
synced 2024-09-03 18:16:05 +02:00
Update conf/backup_method
This commit is contained in:
parent
b9dc0d16fa
commit
0cffc5bba4
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ do_backup() {
|
||||||
size="$3"
|
size="$3"
|
||||||
description="$4"
|
description="$4"
|
||||||
set +e
|
set +e
|
||||||
if ! "$borg" config -l > /dev/null 2>&1; then
|
if ! "$borg" list > /dev/null 2>&1; then
|
||||||
"$borg" init -e repokey
|
"$borg" init -e repokey
|
||||||
# human_size=`echo $size | awk '{ suffix=" KMGT"; for(i=1; $1>1024 && i < length(suffix); i++) $1/=1024; print int($1) substr(suffix, i, 1), $3; }'`
|
# human_size=`echo $size | awk '{ suffix=" KMGT"; for(i=1; $1>1024 && i < length(suffix); i++) $1/=1024; print int($1) substr(suffix, i, 1), $3; }'`
|
||||||
# Speed in Kbps
|
# Speed in Kbps
|
||||||
|
|
Loading…
Add table
Reference in a new issue