I recently experienced an issue with my Dietpi installation. In short I can’t connect to the Web server even though everything seems to be running. I made Backup on a fresh install with everything configured initially. Since then I’ve reformatted that machine and have the current configuration which is not working. I made an off-line backup of dietpi-backup_system.tgz to another system. How do I use that to restore the operating system?
I’ve tried with a fresh install with Dietpi-Backup to restore. I get the following error message “/mnt/dietpi-backup/.dietpi-backup_system_stats does not exist”
Apparently the backup is not fully self-contained and restorable?
I would’ve had to back up the entire dietpi-backup directory to make it restorable instead of the .tgz file. if so that is not clear in the documentation or the tool itself.
To anyone else experiencing this issue this is probably the fix. Changes were made to the Dietpi-backup script. Any backups made Prior to Dietpi 142 will not work on the new system. The ticket below contains instructions to restore with the old system. https://github.com/Fourdee/DietPi/issues/685
The above fix does not work for me. As .dietpi-backup_settings does not exist.
How is this supposed to work on a system that’s never made a backup? Therefore .dietpi-backup_settings doesn’t exist. In essence I have the contents of the backup via dietpi-backup_system.tgz but I don’t in any form in either system have ‘.dietpi-backup_settings’ as verified by
Okay I’ve tried with the old system (instructions for prior versions to 142v)and the new system and the default dietpi_backup for versions equal to or greater than 142v)
root@DietPi:~# ls -lha /DietPi/dietpi/ | grep backup
-rwxr-xr-x 1 root root 19K Feb 3 21:19 dietpi-backup
-rw-r--r-- 1 root root 36 Feb 3 21:25 .dietpi-backup_settings
I’ve extracted dietpi-backup_system.tgz into /mnt/
root@DietPi:/mnt# ls
dietpi-backup_system dietpi_userdata ftp_client nfs_client samba usb_1
both versions of the backup program expect dietpi-backup when my folders named dietpi-backup_system. I’ve tried renaming it to dietpi-backup to no effect Both backup system say something similar to this.
FP_TARGET_BACKUP=/mnt/dietpi-backup
│
│ Your current location is not supported.
│ The location must be inside the /mnt/* directory.
│ - eg: /mnt/dietpi-backup
OK I believe I got it to work.
A fresh image Up-to-date 143v
set up dietpi only openSSH instead of beardrop
create a backup through dietpi-launcher
This creates two files
dietpi-backup_system
.dietpi-backup_settings
navigate to /mnt/dietpi-backup ‘cd /mnt/dietpi-backup’
remove the newly generated dietpi-backup folder ‘rm -f -r dietpi-backup’
transfer over FTP dietpi-backup_system.tgz to ‘mnt/dietpi-backup’
untar your dietpi-backup_system.tgz ‘’
Optional - edit .dietpi-backup_settings to reflect the date of your backup ‘nano .dietpi-backup_settings’
Considering dietpi-backup_system.tgz’s filename I can presume that it been created with 142 or later.
My logic is the new backup system names dietpi-backup_system or dietpi-backup_full depending on if the end user would like the files from the data directory. Am I correct in that assumption?
Okay I restored the using old method successfully although I run the same Boot error as depicted in the dropbox link. Given the fact that this error persists across both methods I would say there’s an issue with how my setup was backedup/restored by diedpi-backup. Let me know how I can help.
Yes, new system from v142 onwards, creates 2 settings files:
.dietpi-backup_system_stats
.dietpi-backup_userdata_stats # if USER DATA is enabled for backup
Okay I restored the using old method successfully although I run the same Boot error as depicted in the dropbox link. Given the fact that this error persists across both methods I would say there’s an issue with how my setup was backedup/restored by diedpi-backup. Let me know how I can help.
Looks like an issue with uboot.
Ok, restore your backup, then, before rebooting, update the DietPi Kernel. This should replace uboot/kernel/modules with a working version.
Copy/Paste all into term