./scripts/backup.sh- PostgreSQL database dump
- CLIProxyAPIPlus configuration
- OAuth token storage
- Environment files
- TLS certificates
Backups are stored in backups/cliproxyapi_backup_YYYYMMDD_HHMMSS.tar.gz
./scripts/restore.sh backups/cliproxyapi_backup_20260206_020000.tar.gzThe restore script will:
- Stop all services
- Restore database from dump
- Restore configuration files
- Restore volumes
- Restart services
Configured during installation via cron:
- Daily: 2 AM every day, keeps last 7 backups
- Weekly: 2 AM every Sunday, keeps last 4 backups
View cron schedule:
sudo crontab -lView backup logs:
tail -f backups/backup.logThe dashboard itself also supports scheduled database snapshots, separate from the host-level backups above. They are managed from Settings → Backup and run via the backup-scheduler container.
See CONFIGURATION.md → Scheduled Backups for setup, the required BACKUP_SCHEDULER_KEY, and the upgrade path for existing deployments.