Dietpi backup: how to exclude folders/files

Hi,

am pretty new to DietPi, but like it very much!!!

But I struggle to exclude folders from dietpi backup. I learned, that “.dietpi-backup_excludes” has to be changed, but I cant find an example for the file format, how to set a directory within “.dietpi-backup_excludes”.
Can someone help me please?

Thx!!!

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
1 Like

Thanks very much!