pibackup
Raspberry Pi backup & restore tool – create, shrink and compress
...Unlike typical SD card tools, pibackup is optimized for large storage devices like SSDs and HDDs, while still working seamlessly with smaller devices. It backs up the first two partitions of any storage device and enables selective restoration. After backup, pibackup can automatically remove specified files and folders, shrink the image, and compress it efficiently using Zstandard (.zst) to save space.
A prebuilt .deb package is available in the bin folder for quick and easy installation:
sudo apt install /path/to/pibackup.deb