OnePloy backs up databases on a schedule you define, keeps copies on the server and optionally in S3-compatible storage, and can restore a backup file into a running database. Configure schedules on the database’s Backups page and restores on its Import backup page.
Step 1: Add S3 storage (recommended)
Local backups stay on the same server as the database. To keep copies elsewhere, add a bucket first:
- Open S3 Storage in the sidebar and add a storage.
- Enter the Endpoint, Bucket, Region, Access key and Secret key.
- Save. OnePloy validates the connection and marks the storage as Connected when it works.
Any S3-compatible service works, for example AWS S3, Cloudflare R2, Backblaze B2, Wasabi or MinIO.
Step 2: Create a backup schedule
- Open the database and go to Backups.
- Create a scheduled backup and set the Frequency. Use
every_minute,hourly,daily,weekly,monthly,yearlyor a cron expression such as0 3 * * *. - Choose which databases to include. Leave it empty to back up the default database. For MongoDB you can exclude collections.
- Optionally pick an S3 storage so each backup is uploaded.
- Save. The schedule uses the server’s timezone.
Use Backup now to run a backup immediately.
How long are backups kept?
Retention is set separately for local and S3 copies on the backup’s retention page:
| Setting | Effect |
|---|---|
| Backups to keep | Maximum number of recent backups. |
| Days to keep | Removes backups older than this many days. |
| Maximum storage (GB) | Removes the oldest backups once the total size is reached. |
Each run appears under the backup’s executions with its status, size and log. You can download a backup file from there.
How do I restore a backup?
- Make sure the database is running.
- Open the database and go to Import backup.
- Choose the backup source: upload a file from your computer, give a file path on the server, or pick a file from an S3 storage.
- Review the import command OnePloy will run, then start the import.
Not every database type supports imports. The page tells you if the current type does not.
Warning: Restoring writes into the live database. Take a fresh backup before you import, and test restores on a copy first. A backup you have never restored is not a proven backup.
Can I manage backups through the API?
Yes:
GET /api/v1/databases/{uuid}/backupslists backup schedules.POST /api/v1/databases/{uuid}/backupscreates one.PATCH /api/v1/databases/{uuid}/backups/{scheduled_backup_uuid}updates one.GET /api/v1/databases/{uuid}/backups/{scheduled_backup_uuid}/executionslists runs.
S3 storages are managed with /api/v1/s3-storages. See the API overview.
What about databases inside services?
Databases that are part of a one-click service (for example the PostgreSQL inside an n8n stack) have their own backup and import pages under the service. See Services.