Dietpi backup: how to exclude folders/files

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
iswego
Posts: 4
Joined: Mon Jun 11, 2018 4:03 pm

Dietpi backup: how to exclude folders/files

Post by iswego »

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!!!!
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Dietpi backup: how to exclude folders/files

Post by Fourdee »

Hi,

Please refer to online documentation:
viewtopic.php?f=8&t=5&start=30#p255

eg: to exclude /root and /lib/firmware and /test/myfile, you could use the following in /DietPi/dietpi/.dietpi-backup_exclude
:

Code: Select all

/root/*
/lib/firmware/*
/test/myfile
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
iswego
Posts: 4
Joined: Mon Jun 11, 2018 4:03 pm

Re: Dietpi backup: how to exclude folders/files

Post by iswego »

Thanks very much!
Post Reply