# Dietpi not booting after upgrade - unable to use dietpi-backup

**URL:** https://dietpi.com/forum/t/dietpi-not-booting-after-upgrade-unable-to-use-dietpi-backup/5152
**Category:** Troubleshooting
**Created:** [22 March 2021 21:23 UTC](https://dietpi.com/forum/t/dietpi-not-booting-after-upgrade-unable-to-use-dietpi-backup/5152 "2021-03-22T21:23:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gaggio](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/7ab992/32.png) [@gaggio](https://dietpi.com/forum/u/gaggio)
#### Post date: [22 March 2021 21:23 UTC](https://dietpi.com/forum/t/dietpi-not-booting-after-upgrade-unable-to-use-dietpi-backup/5152/1 "2021-03-22T21:23:00Z")

</div>

Hi,  
today I tried to update a working system from 6.28 to 6.35 (this version was proposed by dietpi-upgrade, even if I think it’s not latest).  
I executed the backup as proposed by the script, but the upgrade was not successful, terminating with a input/output error and resulting in a system unable to boot.  
I therefore realised that the backup produced by dietpi-backup is not a full image that can be flashed on the SD card and restored.  
Before I surrender and reconfigure a new system from scratch, is my understanding correct? There’s no way to restore the backup if the system is not even booting?

Many thanks,  
gaggio

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [23 March 2021 10:11 UTC](https://dietpi.com/forum/t/dietpi-not-booting-after-upgrade-unable-to-use-dietpi-backup/5152/2 "2021-03-23T10:11:43Z")

</div>

Hi,

the backup is not an image that can be flashed directly on an SD card. The backup is a file system copy. However it is possible to restore such a backup during initial boot. But your system 6.28 is quite old and it might cause trouble during restore as the current available images are newer compare to 6.28.

Where did you saved the backup on? Same SD card or an external USB stick?

---

<div class="post-metadata">

### Author: ![gaggio](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/7ab992/32.png) [@gaggio](https://dietpi.com/forum/u/gaggio)
#### Post date: [23 March 2021 14:45 UTC](https://dietpi.com/forum/t/dietpi-not-booting-after-upgrade-unable-to-use-dietpi-backup/5152/3 "2021-03-23T14:45:15Z")

</div>

Thanks for your reply, the backup is on an external USB hard drive.

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [23 March 2021 15:12 UTC](https://dietpi.com/forum/t/dietpi-not-booting-after-upgrade-unable-to-use-dietpi-backup/5152/4 "2021-03-23T15:12:32Z")

</div>

in theory you can try to restore the backup on a first inital run

1. download latest image from [dietpi.com](http://dietpi.com)
2. flash image to a SD card, if possible use a spare card
3. once done, reconnect the SD card to your computer
4. open dietpi.txt
5. add following line to the end of the file

```nohighlight
# Restore a DietPi-Backup on first boot: 0 => disable | 1 => interactive restore (show list of found backups) | 2 => non-interactive restore (restore first found backup)
# - Simply attach the drive/disk/stick with contains the backup. All attached drives will be mounted temporarily and searched automatically.
AUTO_SETUP_BACKUP_RESTORE=1

```

1. connect USB disk + SD card to your device
2. boot your device
3. during Initial setup process, DietPi will scan all attached devices for the availability of a backup
4. if a valid backup was found, you will be ask if you like to restore

There might be some error messages at the end. But usually after a reboot, your system should be back online (hopefully). As said, no guarantee as you system is quite old. Not sure how many package updates you have done in between.
