Files
zigbee-stack/scripts/backup.sh
John Lancaster e7a6a5ab1f script updates
2024-09-29 21:50:12 +00:00

21 lines
371 B
Bash
Executable File

#!/usr/bin/env bash
set -e
if [ -z "$BACKUP_DIR" ]; then
echo "Error: BACKUP_DIR is not set."
exit 1
fi
if [ -z "$RESTIC_REPOSITORY" ]; then
echo "Error: RESTIC_REPOSITORY is not set."
exit 1
fi
if [ -z "$RESTIC_PASSWORD" ]; then
echo "Error: RESTIC_PASSWORD is not set."
exit 1
fi
python -m restic.backup --project zigbee-stack --services mqtt,z2m "$@"