Hi,
Please refer to online documentation:
https://dietpi.com/forum/t/resolved-cannot-log-in-to-the-mysql-server/41/1
eg: to exclude /root and /lib/firmware and /test/myfile, you could use the following in /DietPi/dietpi/.dietpi-backup_exclude
:
/root/*
/lib/firmware/*
/test/myfile