sudo apt install git

git clone https://github.com/lzkelley/bkup_rpimage.git

cd bkup_rpimage

sudo sh bkup_rpimage.sh start -c /media/pi/Change To Match/pi_backup.img
Setup A Crontab Job:

sudo crontab -e

Backup:

0 0 * * * sudo sh /home/pi/bkup_rpimage/bkup_rpimage.sh start -c /media/pi/Change To Match/pi_backup.img

Multiple Backups:

0 0 * * * sudo sh /home/pi/bkup_rpimage/bkup_rpimage.sh start -c /media/pi/Change To Match/pi_$(date +%Y-%m-%d).img

And Save. Control x y enter