Servers

How to set up automated backups

~3 min read

DeployFly can automatically back up your databases and application files on a schedule and store them locally or push them to remote storage.

Steps

  1. 1

    Open the Backups page

    Open your server and click "Backups" in the sidebar.

  2. 2

    Create a backup configuration

    Click "New Backup". Choose whether to back up a database, an application's files, or both.

  3. 3

    Select the target

    Choose the specific database or application you want to back up from the dropdown.

  4. 4

    Choose a destination

    Select "Local" to store backups on the server itself, or configure remote storage (Amazon S3, S3-compatible, or SFTP) for off-site backups.

  5. 5

    Set the schedule and retention

    Choose how often to run (daily, weekly, etc.) and how many copies to keep before old ones are deleted. 7 daily backups is a good starting point.

  6. 6

    Save and verify

    Click "Save". To test immediately, click "Run Now". A successful backup shows a green status and the file size.

Watch out

  • Local backups consume disk space on your server. Monitor disk usage in Monitoring and set a reasonable retention count.

Tips

  • Always use remote storage (S3 or SFTP) in addition to local backups — if the server is lost, local backups are also lost.
  • Database backups are compressed as .sql.gz files. Application backups are compressed as .tar.gz.
  • Keep at least 7 daily backups to protect against data corruption that may not be noticed immediately.

Related guides