Volume backups
Back up Docker named volumes to an S3 destination on a schedule, and restore them.
Volume backups protect data that database backups can't, such as SQLite files or services with no database. They copy Docker named volumes to an S3 destination. They work for applications and Compose services.
Only named volumes can be backed up, not bind mounts such as ../files. If you use a bind mount, switch to a named volume first. See Compose.
Before you start
- Add S3-compatible storage under Backups › Storage (backup destinations).
- Make sure the data lives in a named volume.
Add a named volume
- Application: open Settings › Storage, click Add volume and choose Volume mount.
- Compose: declare the volume in the Compose file.
services:
app:
image: ghcr.io/w3panel/w3panel:latest
volumes:
- my-volume:/app/data
volumes:
my-volume:Create a backup
Open the service and go to Settings › Storage (Settings › Storage and backups for Compose).
In the Volume backups card, click Add volume backup and fill in the settings below.
Enable it and save.
| Setting | What it does | Example |
|---|---|---|
| Task name | Unique name for the backup | my-n8n-backup |
| Schedule | Cron expression | 0 0 * * * (daily at midnight) |
| Destination | S3 storage that stores the files | Your destination |
| Service name | Service that owns the volume; autocompletes | n8n |
| Volume name | Volume to back up; filled in when you pick a service | n8n_data |
| Backup prefix | Optional prefix for backup file names | |
| Turn off container during backup | Stop the container during the backup, then start it again | |
| Enabled | Turns the schedule on |
Turning the container off is safer: it prevents corruption from writes during the copy. Leaving it on is faster, but a service that is writing to the volume can produce an inconsistent backup.
Without Turn off container during backup, data can be corrupted if the application writes to the volume during the backup.
Example: n8n
n8n stores its SQLite database in the n8n_data volume, so database backups don't apply. Back up the volume instead, using the settings above.
services:
n8n:
image: docker.n8n.io/n8nio/n8n:1.83.2
restart: always
environment:
- N8N_HOST=${N8N_HOST}
- N8N_PORT=${N8N_PORT}
- N8N_PROTOCOL=http
- NODE_ENV=production
- WEBHOOK_URL=https://${N8N_HOST}/
- GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
- N8N_SECURE_COOKIE=false
volumes:
- n8n_data:/home/node/.n8n
volumes:
n8n_data:Restore a backup
Restore fails if the target volume already exists or is in use. Stop containers that use it and remove the existing volume first.
Open the same section and click Restore volume backup in the Volume backups card.
Select the Destination that holds the backup.
Select the backup to restore.
Enter the Volume name to restore into, then click Restore.
Volume names
Compose volumes are named {appName}_{volumeName}. For app name n8n-n8n-kqlble and volume n8n_data, the volume is n8n-n8n-kqlble_n8n_data. Find the app name on the service in wtree Cloud. For single applications, the volume name matches your mount configuration.
