# 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="https://2103450200-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKew-XtJKAPabdeTxXg%2Fuploads%2FhkJU3LBisbOP73nAKG7v%2Fimage.png?alt=media&#x26;token=393725df-f4c4-48fa-aff8-d5ba449c91af" 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
```
