Download scripts/aether-backup.sh from iiioooo1/aether-hf: direct link, hf CLI and curl.
- Browser
- Download file 379 Bytes
-
https://huggingface.co/spaces/iiioooo1/aether-hf/resolve/main/scripts/aether-backup.sh
- Command line
-
hf download hf://spaces/iiioooo1/aether-hf/scripts/aether-backup.sh
-
curl -L -o aether-backup.sh https://huggingface.co/spaces/iiioooo1/aether-hf/resolve/main/scripts/aether-backup.sh
379 Bytes
| # Wrapper for backup; called by cron and on shutdown. | |
| set -euo pipefail | |
| if [[ -z "${HF_TOKEN:-}" ]]; then | |
| echo "$(date -u +%FT%TZ) aether-backup: HF_TOKEN unset, skip" >&2 | |
| exit 0 | |
| fi | |
| if [[ -z "${AETHER_BACKUP_REPO:-}" ]]; then | |
| echo "$(date -u +%FT%TZ) aether-backup: AETHER_BACKUP_REPO unset, skip" >&2 | |
| exit 0 | |
| fi | |
| exec python3 /usr/local/bin/aether_backup.py | |