Fix restore script
This commit is contained in:
@@ -209,7 +209,7 @@ cmd_restore() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
POS_ARGS="$POS_ARGS \"$1\""
|
POS_ARGS="$POS_ARGS $1"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
@@ -257,7 +257,7 @@ cmd_restore() {
|
|||||||
echo "Restoring from backup: $BACKUP_DIR"
|
echo "Restoring from backup: $BACKUP_DIR"
|
||||||
|
|
||||||
# Ensure stack is not running
|
# Ensure stack is not running
|
||||||
docker compose down
|
docker compose down > /dev/null 2>&1
|
||||||
|
|
||||||
# Create snapshot to revert to on failure
|
# Create snapshot to revert to on failure
|
||||||
trap restore_cleanup_trap HUP INT QUIT ABRT TERM
|
trap restore_cleanup_trap HUP INT QUIT ABRT TERM
|
||||||
|
|||||||
Reference in New Issue
Block a user