Back up storage mounts
Coolify can create scheduled file-level archives of eligible storage mounts attached to an application. Coolify first creates each compressed .tar.gz archive on the application's deployment server. It can then send a copy to S3-compatible, SFTP, FTPS, or WebDAV storage and, if configured, remove the local archive after every selected destination has a successful copy.
If the application changes files while Coolify creates the archive, the backup may be inconsistent or corrupted. This is especially important for databases. Use an application-aware backup when one is available, or stop application writes during the archive step.
Check whether the mount is supported
The dashboard backup workflow described on this page is available for the storage mounts of applications and services.
| Mount workflow | Scheduled storage backup |
|---|---|
| Volume Mount without a Source Path | Supported |
| Volume Mount with a Source Path | Supported |
| Directory Mount | Supported |
| File Mount | Not supported |
| Host File Mount | Not supported |
For a File Mount or Host File Mount, back up the source file through source control or the process that manages the file. For database data, use the database engine's supported backup workflow instead of relying only on a file-level storage archive.
Create a scheduled backup
The application must already have an eligible mount before you can select it as a backup target.
- Open the application in its project and environment.
- Select Backups.
- Under Storage backups, select Add.
- Select the volume or directory in Backup target.
- Enter
every_minute,hourly,daily,weekly,monthly,yearly, or a valid cron expression in Frequency. - Select Create schedule.
Coolify creates and enables the schedule. Open it to change its settings or select Back up now. The default frequency shown for a new schedule is daily.
Each volume or directory has one schedule. When the selected target already has one, the form shows a notice with a link to the existing schedule, and Update schedule replaces Create schedule. To send each backup to more than one storage, select the storages in the S3 storages setting of that schedule instead of creating another one.
On a service, open its Backups page and select Add backup > Storage backup to open New storage backup. The form and the schedule settings work in the same way.
You can also open Persistent Storage, find the eligible volume or directory, and select Configure Backup.
Reduce interruptions or consistency risk
Under General > Backup schedule, choose whether Coolify should stop containers that use the selected storage while it creates the archive:
- Set Archive behavior to Keep containers running to avoid an intentional interruption. Files may change during the archive.
- Select Stop containers during archive for a safer file-level backup. Coolify gracefully stops containers that use the storage, creates the archive, and starts those containers again. The application is unavailable during that archive step.
Set Timeout to the maximum backup runtime in seconds. The accepted range is 60 to 36000, and the default is 3600 seconds. Timezone is read-only and follows the server that runs the schedule, or the instance timezone when the server has no timezone configured.
Choose where backups are stored
Every schedule keeps a local archive on the deployment server by default. Local storage alone does not protect against losing that server.
To create an off-server copy:
- Configure and validate an S3-compatible storage destination, or an SFTP, FTPS, or WebDAV storage, for the current team.
- Open the storage backup schedule and select S3 to open S3 storage.
- Select one or more destinations in S3 storages, then select Enable S3.
- Select Save changes.
Set Local copy to Delete after S3 upload when you want to retain only the remote copies. Each backup is uploaded to every selected destination. Coolify deletes the local archive only after all uploads succeed. If any upload fails, the execution shows S3 warning and Coolify keeps the local archive.
The S3 storages list also shows the SFTP, FTPS, and WebDAV storages of the team. A member whose access is limited to some projects or resources cannot add a new storage to a backup schedule. This needs write access on the whole team, also through the API.
Set retention limits
Under Retention, local and S3 archives each have three independent limits:
- Backups to keep
- Days to keep
- Maximum storage (GB)
A value of 0 makes that limit unlimited. When several limits are configured, reaching any one of them triggers cleanup of the oldest successful archives in that location. S3 retention is evaluated separately for each destination. The default number of local and S3 backups to keep is 7; the day and storage limits default to 0.
Verify and download a backup
Open Executions and wait for the run to finish. A usable result shows Success and at least one available location under Backup Availability. The Time column shows when a run ended, how long ago that was, and how long it took. Hover over it to see the start and end times. On a service, the Backup execution details of a run show the same times.
- Local Storage means the archive still exists on the deployment server. Select Download to save the archive to your computer.
- Each S3 destination has its own badge showing whether its copy uploaded, failed, or was deleted.
- S3 warning means the local archive succeeded but at least one S3 upload failed. Read each destination's result before relying on the remote copies. See Failed uploads.
- Failed means the archive was not completed. Read the execution message before retrying.
- Needs attention means recovery requires action. Read the reason, correct it, and use the retry button. Failed recovery does not indefinitely block new backups.
Download uses the local archive when available and can fall back to a retained S3 copy. S3 links expire after 15 minutes. A copy in an SFTP, FTPS, or WebDAV storage downloads through Coolify. An instance configured with S3 for file downloads can first prepare local archives in that storage. Wait for preparation to finish. Downloads require an Admin or Owner role.
A failed storage backup notifies the team on the first failure, then at most once a day while it keeps failing. The first successful run after a failure sends one "works again" notification. Coolify never disables a storage backup schedule automatically.
When the archive succeeds but an upload fails, the notification says that the upload to the backup storage failed and that the local archive is kept. The webhook payload sets upload_failed for this case.
The storage backup workflow creates, downloads, and deletes archives, but it does not provide a dashboard restore action. Before relying on a schedule, download an archive and test your restore procedure in a separate environment.
Delete a backup or schedule
Deleting one execution removes its local archive. When an S3 copy exists, select the S3 deletion option if you also want to remove the copies from every S3 destination.
Deleting the scheduled backup is broader: it permanently deletes the schedule and every local and S3 archive created by it. A volume or Directory Mount with a schedule cannot be deleted until you remove the schedule and its archives.
Deleting the application or service always removes its storage backup schedules, but not their archives. The delete dialog option Permanently delete all database and storage backups of this resource, on the server and on S3. is off by default. When it is off, the archives stay on the server and on S3, and Coolify no longer manages them, so you must delete them yourself.
