# Backups

ReadyMage creates backups for your database and media. Backups are available for download in the [User Portal](https://portal.readymage.com/).

{% hint style="warning" %}
Media backups for instances are performed every Monday at 04:00 UTC and stored securely for 2 weeks.

If you need to restore data from a backup, please get in touch with us at <admin@readymage.com> and include your instance name in the request.
{% endhint %}

### Downloading a backup

Access your backups by navigating to the **User Portal → Project → Selected Instance → Application Management  → Backups**.&#x20;

Within the backups tab, you can choose what database or media backup you wish to download.

<figure><img src="/files/JK1UhSXUkqXkGb8dNfZv" alt=""><figcaption></figcaption></figure>

### Frequency, timing, and availability

All of the backups are set by default. Below you can see the time frame for each type of backup and for how long they will be available.

For example, a MySQL daily backup for July 1st will be automatically deleted after July 5th.

#### MySQL Database

| Frequency | Timing                                  | Availability |
| --------- | --------------------------------------- | ------------ |
| Daily     | 00:00 UTC                               | 4 days       |
| Weekly    | Sunday to Monday 00:00 UTC              | 14 days      |
| Monthly   | On the first day of the month 00:00 UTC | 93 days      |

#### Media

| Weekly | Monday 04:00 UTC | 14 days |
| ------ | ---------------- | ------- |

Media backup is made with `dar` utility ver. `2.7.3`. To unarchive a backup, you need the utility not lower than this version. \
\
If the standard software repositories of your operating system don't contain such a version you can download the binary from [here](https://dar.edrusb.org/dar.linux.free.fr/Releases/Dar_static/x86_64_GNU_Linux/dar_static_2.7.6_x86_64_GNU_Linux) for Linux and [here](https://dar.edrusb.org/dar.linux.free.fr/Releases/Windows64bits/dar64-2.7.6-win64.zip) for Windows.

Here is an example of a media backup unarchiving for Linux:

```
mkdir media-weekly
dar -x readymage-instance-media-weekly-20220101.1.dar -R media-weekly

ls media-weekly
config  media
```


---

# Agent Instructions: 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://help.readymage.com/application-management/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.
