-
Hey, I have dietpi_userdata on a usbkey. I want to backup dietpi on another usb key, and I cannot figure out how to do it with filters... Here's my /mnt list:
So, I want the dietpi_userdata to be included in the backup made on /mnt/b002350b-019e-40e4-9177-1e678666e503/ but I don't want the nas to be copied...
I tried:
Can you help me? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Try this:
This is the relevant info from the default filter file:
So with your filter,
Somehow complicated, I know, but once you understand the logic, it somehow makes sense. The list is always processed from top to bottom on every processed file, applying the first rule which matches. So in above case:
An info that is not mentioned in the default filter file:
|
Beta Was this translation helpful? Give feedback.
Try this:
This is the relevant info from the default filter file:
So with your filter,
/mnt/c7a8c22e-6b5b-4425-9731-23379c3655b1/dietpi_userdata
is not processed, because/mnt/c7a8c22e-6b5b-4425-9731-23379c3655b1
is excluded via- /mnt/*
and- /mnt/
the same way. If parent directories match an exclude rule, preceding include rules need to include those to be processed. With the above example, all content of the USB drive is backed up. If you really only want include the userdata directory, the following would do: