> For the complete documentation index, see [llms.txt](https://hatchbox.gitbook.io/hatchbox/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hatchbox.gitbook.io/hatchbox/apps/backups.md).

# Backups

## How do I enable backups in Hatchbox?

&#x20;We use the [Backup gem](http://backup.github.io/backup/v4/) with a nightly cron job to backup your app's data.

You can turn on backups by visiting the Backups tab and enabling it. By default, we'll backup your database to local disk.

### Can I change how often backups run?

Yep. To change how often your backups run, edit `/etc/cron.d/APPNAME-backup` and adjust the cron schedule.

### How do I change what gets backed up and where?

You can customize your back to do other things like upload to S3 or DigitalOcean Spaces, post notification on completion or failure in Slack or by email, and also backup files if you're doing local file uploads.

Each of these features can be found on the Backup gem's website linked above. Your backup config will have some examples of these options commented out that you can easily enable.

To edit your backup config, you can edit `/home/deploy/Backup/models/app_name_underscored`

### How do I test my backups?

To test your backups, simply run: `backup perform -t appname_underscored`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hatchbox.gitbook.io/hatchbox/apps/backups.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
