Swap deprecated --last option with --latest 1
This commit is contained in:
@@ -294,7 +294,7 @@ send_healthcheck "START" "Starting backup of $BACKUP_NAME"
|
||||
# Pre-backup: Check repository connectivity
|
||||
log_message "Checking repository connectivity..."
|
||||
CONNECTIVITY_OUTPUT=""
|
||||
if ! CONNECTIVITY_OUTPUT=$(eval "$RESTIC_CMD snapshots --last" 2>&1); then
|
||||
if ! CONNECTIVITY_OUTPUT=$(eval "$RESTIC_CMD snapshots --latest 1" 2>&1); then
|
||||
log_message "WARNING: Could not connect to repository or no snapshots exist yet"
|
||||
if [ "$VERBOSE" = true ]; then
|
||||
log_message "Connectivity check output: $CONNECTIVITY_OUTPUT"
|
||||
|
||||
Reference in New Issue
Block a user