# backup/restore strategy...

**URL:** <https://dietpi.com/forum/t/backup-restore-strategy/1836>\
**Category:** Troubleshooting\
**Created:** [21 January 2018 10:30 UTC](https://dietpi.com/forum/t/backup-restore-strategy/1836 "2018-01-21T10:30:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Fourdee](https://dietpi.com/forum/user_avatar/dietpi.com/fourdee/32/11_2.png) [@Fourdee](https://dietpi.com/forum/u/Fourdee)\
**Post date:** [21 January 2018 12:22 UTC](https://dietpi.com/forum/t/backup-restore-strategy/1836/2 "2018-01-21T12:22:51Z")

</div>

> [@pakikje](#):
>
> Hello guys,
> 
> I was wondering what the best backup/restore strategy is for dietpi. Right now what i do is:
> 
> automated backup: (script)  
> copy config files & root-folder to usb/dietpi\_userdata & nas
> 
> restore:  
> flash sd-card with dietpi  
> boot  
> change root-passwd/timezone  
> run restore script (sets lib-path,apt-get update && upgrade, installs apps and after that copies config-files, sets crontab)
> 
> Is there a better, faster, other way?

Have you tried DietPi-Backup?

> [@(resolved) Cannot log in to the MySQL server](https://dietpi.com/forum/t/resolved-cannot-log-in-to-the-mysql-server/41/1):
>
> Hello, I’m continuing experimenting and just installed LAMP. I had previously changed HostName and Password and when trying to log into phpmyadmin interface I cannot access with root and either of the two passwords: raspberry the default one and the new one I set up. Is there a short way to solve this? I’m starting googling around… Many thanks for any hint you might give me, Virgus

Backup system:

```plaintext
dietpi-backup

```

You can create a full system backup (default /mnt/dietpi-backup)

Restore (automated, no GUI):

```plaintext
dietpi-backup -1

```

---

_[View the full topic](https://dietpi.com/forum/t/backup-restore-strategy/1836)._
