Skip to content

Question about Dietpi-Backup #5914

Answered by MichaIng
pedrom34 asked this question in Q&A
Discussion options

You must be logged in to vote

Try this:

+ /mnt/c7a8c22e-6b5b-4425-9731-23379c3655b1/
- /mnt/*
- /media/

This is the relevant info from the default filter file:

# Excluded directories are not processed recursively, so contained items cannot be included.

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:

+ /mnt/c7a8c22e-6b5…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pedrom34
Comment options

Answer selected by pedrom34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants