- Copy the example environment file and modify it as needed:
cp .env.example .env
- Run the script
./run.sh
Refer to backend/README.md#helper-scripts for detailed usage.
Refer to backend/README.md#backup-and-restore for detailed usage.
The backend supports both manual and periodic backup export.
- Manual export command:
docker compose exec backend node scripts/export-old-judge-backup.js-
Periodic export is configured by env vars in docker-compose.production.yml and .env.example:
AUTO_BACKUP_ENABLEDAUTO_BACKUP_INTERVAL_SECONDS(default21600, i.e. 4 times/day)AUTO_BACKUP_OUTPUT_DIRAUTO_BACKUP_INCLUDE_RAWAUTO_BACKUP_RUN_ON_START
-
Optional Google Drive upload is also supported:
AUTO_BACKUP_GDRIVE_ENABLEDAUTO_BACKUP_GDRIVE_REMOTEAUTO_BACKUP_GDRIVE_PATHRCLONE_CONFIG
For full setup details and examples, see backend/README.md.