Updated documentation and fixed bug on extract function

This commit is contained in:
Marco Cetica
2023-03-20 11:42:51 +01:00
parent acff1370ce
commit d49ad449de
4 changed files with 6 additions and 5 deletions

View File

@@ -109,9 +109,10 @@ extract_backup() {
BACKUP_SH_ARCHIVE_PATH="$1"
BACKUP_SH_ARCHIVE_PW="$2"
openssl enc -aes-256-cbc -md sha512 -pbkdf2 -iter 100000 -salt -d \
(openssl enc -aes-256-cbc -md sha512 -pbkdf2 -iter 100000 -salt -d \
-in "$BACKUP_SH_ARCHIVE_PATH" \
-k "$BACKUP_SH_ARCHIVE_PW" | tar xvz
-k "$BACKUP_SH_ARCHIVE_PW" | tar xvz) > /dev/null 2>&1 \
|| (echo "Unable to extract backup." && exit 1)
}
helper() {