Skip to main content

Overview

Dokploy provides comprehensive backup capabilities for databases, volumes, and complete application stacks. Automate backups to external storage destinations and ensure business continuity with proven disaster recovery strategies.

Automated Backups

Schedule automatic backups with cron expressions

Multiple Destinations

S3-compatible storage, local, and remote servers

Easy Restore

Quick restoration from any backup point

Backup Types

Dokploy supports different backup strategies:
Automated database dumps:
  • PostgreSQL: pg_dump
  • MySQL/MariaDB: mysqldump
  • MongoDB: mongodump
  • Redis: BGSAVE and RDB snapshots
Recommended frequency: Daily or hourly for critical data

Configuring Database Backups

Via Dashboard

1

Navigate to Database

Go to your database (PostgreSQL, MySQL, MongoDB, MariaDB, or Redis)
2

Open Backup Settings

Click on the Backups tab
3

Configure Schedule

boolean
required
Enable automated backups
string
required
Cron expression for backup frequencyExamples:
  • 0 2 * * * - Daily at 2 AM
  • 0 */6 * * * - Every 6 hours
  • 0 0 * * 0 - Weekly on Sunday
string
required
Select backup destination (S3, local, etc.)
number
default:"30"
Number of days to keep backups
4

Test Backup

Click Run Backup Now to test the configuration

Via API

Create Backup Configuration
Trigger Manual Backup

Backup Destinations

S3-Compatible Storage

Supports AWS S3, MinIO, DigitalOcean Spaces, Backblaze B2, and more:
1

Add Destination

Navigate to Settings → Backup Destinations → Add Destination
2

Configure S3

string
required
Friendly name for the destination
string
required
Select “S3”
string
required
S3 endpoint URL (e.g., s3.amazonaws.com)
string
required
AWS region (e.g., us-east-1)
string
required
Bucket name
string
required
AWS Access Key ID
string
required
AWS Secret Access Key
3

Test Connection

Click Test Connection to verify credentials

Provider Examples

Local Storage

Store backups on the Dokploy server:
Local backups don’t protect against server failure. Always use remote storage for production.

Remote Server (SFTP)

Backup to a remote server via SFTP:

Database-Specific Backup Methods

PostgreSQL

Manual Backup

MySQL/MariaDB

Manual Backup

MongoDB

Manual Backup

Redis

Manual Backup

Volume Backups

Backup Docker Volumes

Manual Volume Backup

Via Dokploy API

Create Volume Backup

Backup Retention Policies

Configure how long backups are kept:
Keep backups for a specific duration:

Restoring from Backups

Database Restore

1

Access Backup

Download backup from storage destination
2

Stop Application

Temporarily stop applications using the database
3

Restore Data

Use database-specific restore commands (see above)
4

Verify

Check data integrity and application functionality
5

Resume

Start applications

Via Dokploy Dashboard

  1. Navigate to Database → Backups
  2. Find the backup to restore
  3. Click Restore
  4. Confirm the action
  5. Monitor restoration progress

Disaster Recovery

Complete System Recovery

1

Reinstall Dokploy

Install Dokploy on a new server:
2

Restore Configuration

Import your projects, applications, and environment variables
3

Restore Databases

Restore database backups from external storage
4

Restore Volumes

Restore volume backups for application data
5

Deploy Applications

Redeploy all applications
6

Update DNS

Point domains to the new server

Recovery Time Objective (RTO)

Plan for acceptable downtime:
  • Critical systems: < 1 hour
  • Production systems: < 4 hours
  • Development systems: < 24 hours

Recovery Point Objective (RPO)

Acceptable data loss:
  • Financial data: < 1 hour (hourly backups)
  • User data: < 24 hours (daily backups)
  • Logs/metrics: < 1 week (weekly backups)

Backup Best Practices

  • 3 copies of your data
  • 2 different storage types (e.g., local + cloud)
  • 1 off-site backup
  • Schedule quarterly restore tests
  • Verify backup integrity
  • Document restore procedures
  • Time the restore process
  • Set up alerts for failed backups
  • Review backup logs weekly
  • Track backup size growth
  • Monitor storage costs
Maintain documentation for:
  • Backup schedules
  • Storage credentials
  • Restore procedures
  • Contact information
  • RTO/RPO targets

Monitoring Backups

Track backup health:
Get Backup Status
Response includes:
  • Last backup time
  • Backup size
  • Success/failure status
  • Next scheduled backup
  • Storage destination

Troubleshooting

  • Verify storage credentials
  • Check S3 bucket permissions
  • Ensure IAM policy allows PutObject
  • Test credentials manually with AWS CLI
  • Consider incremental backups
  • Compress before upload
  • Use faster storage destination
  • Schedule during low-traffic hours
  • Check database size and optimize
  • Adjust retention policies
  • Enable compression
  • Archive old backups to cheaper storage
  • Review backup frequency
  • Verify backup file integrity
  • Check database version compatibility
  • Ensure sufficient disk space
  • Review restore logs for errors

Next Steps

Database Backups

Detailed database backup configuration

Volumes & Storage

Manage persistent volumes

Monitoring

Monitor backup job status

Security

Secure your backups