It basically quite simple,
- plug the USB stick in your SBC
- run dietpi-drive_manager and mount your USB stick to something like /mnt/usb
- leave dietpi-drive_manager
- run dietpi-backup
- select Location > Manual and enter /mnt/usb/dietpi-backup
- go back to main menu and run the Backup
- as well a backup can be created from CLI via dietpi-backup 1
- that’s it. On next Backup the USB stick will be mounted automatically
If needed the backup can be restored on the current system or on a fresh install. If you like to restore the backup on a fresh install, just do following
- download a new image
- flash the image to SD card
- once done place the SD card back to your computer
- open dietpi.txt in the bootFS
- ensure restore value set AUTO_SETUP_BACKUP_RESTORE=1
# 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
- this will scan your USB drives on first boot and provide a list of backups found
- just select you backup, wait a moment and reboot your system afterwards
thats it.