pibackup
Raspberry Pi backup & restore tool – create, shrink and compress
...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