Squashkiwi backup and restore fully working.

This commit is contained in:
John
2025-04-27 21:13:38 +12:00
parent 5bc7a05a46
commit 5e8189c103
4 changed files with 18 additions and 10 deletions

View File

@ -31,7 +31,7 @@ mkdir -p "$LOCAL_DATA_FOLDER"
# Restore data folder from backup
# --strip-components=1 removes the parent folder in the tgz from the restore paths.
if ! tar xzvf --strip-components=1 "$BACKUP_FILE" -C "$LOCAL_DATA_FOLDER"; then
if ! tar xzvf "$BACKUP_FILE" -C "$LOCAL_DATA_FOLDER" --strip-components=1; then
die "Failed to restore data folder from backup"
fi