# uninstalling Pihole

**URL:** <https://dietpi.com/forum/t/uninstalling-pihole/5445>\
**Category:** Troubleshooting\
**Created:** [19 June 2021 09:17 UTC](https://dietpi.com/forum/t/uninstalling-pihole/5445 "2021-06-19T09:17:47Z")\
**Posts on this page:** 1\
**Showing post:** 27

<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:** [9 February 2022 22:25 UTC](https://dietpi.com/forum/t/uninstalling-pihole/5445/27 "2022-02-09T22:25:22Z")

</div>

ok you where able to mount the SD card as well as USB stick? good if rsync complete.

To be able to restore the backup during Initial setup:

1. flash SD card with a new image
2. adjust /boot/dietpi.txt before first boot and adjust following.

```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=0

```

1. You could set it to 1
2. connect SD card + USB stick to the SBC
3. boot your SBC
4. usually the initial setup should detect your backup now

---

_[View the full topic](https://dietpi.com/forum/t/uninstalling-pihole/5445)._
