Spaces:
Sleeping
Sleeping
Download entrypoint-wrapper.sh from ZeroTraceX/check: direct link, hf CLI and curl.
- Browser
- Download file 372 Bytes
-
https://huggingface.co/spaces/ZeroTraceX/check/resolve/main/entrypoint-wrapper.sh
- Command line
-
hf download hf://spaces/ZeroTraceX/check/entrypoint-wrapper.sh
-
curl -L -o entrypoint-wrapper.sh https://huggingface.co/spaces/ZeroTraceX/check/resolve/main/entrypoint-wrapper.sh
372 Bytes
| set -e | |
| mkdir -p /root/.config/rclone | |
| echo "$RCLONE_CONFIG_B64" | base64 -d > /root/.config/rclone/rclone.conf | |
| mkdir -p /app/pb_data | |
| # Restore database | |
| rclone copy gdrive:checkcle/pb_data /app/pb_data || true | |
| # Background sync every 5 minutes | |
| ( | |
| while true; do | |
| sleep 60 | |
| rclone sync /app/pb_data gdrive:checkcle/pb_data | |
| done | |
| ) & | |
| exec /app/entrypoint.sh |