/etc/fstab
//192.168.110.50/Cloud /media/dietpicloud cifs username=dietpi,password=dietpu,uid=1000,iocharset=utf8 0 0
Bash Script
#!/bin/bash
now=`date +"%Y-%m-%d"`
file="${now}_HomeAssistantPi.img"
echo "Backing up ${file}"
dd if=/dev/mmcblk0 of=/media/dietpicloud/backup/homeassistant/${file} status=progress