Raspberry Pi Backup

Own method

Let's say the RaspiBackup tool stops working (which actually happened to me for some reason). There is a simple way to automate the dd backup by yourself.
I made a script called backupie, to maually run backup and restore.
I also added extra parameters to run compressed backups and backup cleaning without user intervention.
Add the below line to crontab, and backupie will run a compressed backup along with cleaning backups older than latest 3 every Sunday at 4 AM.
0 4 * * 0 /home/piserver/backupie -auto && /home/piserver/backupie -cleanup
To restore the backup, take the sd card and insert it into your pc. Use Rufus.
Just download it, select the sd card, the gz zip file and run it. It will take some time if you pulled the backup from a bigger sd card (more than 16gb). So keep an eye on the logs.

RaspiBackup Tool

Backing up data is important. Large files and storages might be hard to back up and maintain, but something as small as a raspberry pi should not be an issue.
So I started using a tool for backing up the whole RPi, which can be easily restored if needed.
The tool is called raspiBackup. It's very easy to use.
Just install the tool, and run the command sudo installation/install.sh from the tool's root directory.
raspiBackup
Configure regular backups there. I stored my backups in an external SSD connected to the Pi.
The command to restore a RPi image to a usb drive is:
sudo dd bs=1M if=path/to/image/fileserver-dd-backup-20240219-231054.img of=/dev/sdb status=progress