# Restore backup from an image

### Step 1: Enter recovery mode

For instructions, look [here](https://sailfishos.wiki/books/system/page/create-a-backup-image-from-recovery) and [here](https://docs.sailfishos.org/Support/Help_Articles/Recovery_Mode/#setting-up-the-recovery-mode-on-the-phone)

### Step 2: Mount microSD-card

Mount your microSD card with the following command. Your SD-card needs to have at least 105GB of free space.

```bash
mount /dev/mmcblk0p1 /mnt
```

### Step 3: Restore the backup

Execute:

```bash
dd if=/mnt/backup.img of=/dev/sda79 bs=1M
```

<p class="callout info">**Note:** This can take 40+ minutes. During this time, no progress is shown. If you would like to see progress, open a second telnet connection and execute <span style="text-decoration: underline;">*watch -n5 'kill -USR1 $(pgrep ^dd$)',*</span> which will show progress (in the original telnet session) every 5 seconds.  
</p>

### Step 4: Unmount the memory card

Once the backup is finished, unmount the microSD-card with:

```bash
umoumt /mnt
```

### Step 5: Exit recovery mode  


For instructions, see [here](https://sailfishos.wiki/books/system/page/create-a-backup-image-from-recovery#bkmrk-%C2%A0step-5%3A-exit-recove) and [here](https://docs.sailfishos.org/Support/Help_Articles/Recovery_Mode/#reverting-the-phone-back-to-the-normal-state)