-
I'm working on moving from Duplicati to autorestic and stuck on one item, include filters. I have a backup set that only gets the For Duplicati, I use:
Inside |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Correct me if i did not understand correctly. You can pass any flag to restic using the options object. location:
foo:
options:
backup
files-from:
- "*/docker-compose.*" |
Beta Was this translation helpful? Give feedback.
-
4-year later, I finally figured this out using a combination of the prevalidate hooks to use docker_configs:
from:
- /dev/null
to:
- localbackup
hooks:
dir: ""
prevalidate:
- find /mnt/media/docker-configs -maxdepth 2 \( -name docker-compose.yaml -o -name "docker-compose.yml" \) 2>/dev/null > /mnt/media/scripts/restic/docker-configs-include
cron: 2 2 * * *
options:
backup:
exclude:
- /dev/null
files-from-verbatim:
- /mnt/media/scripts/restic/docker-configs-include |
Beta Was this translation helpful? Give feedback.
4-year later, I finally figured this out using a combination of the prevalidate hooks to use
find
to generate a file including exactly what I wanted, thenfiles-from-verbatim
to utilize that file. The trick was getting rid of the requiredfrom
as it was causing the re-inclusion of the files I didn't want. Feeding it /dev/null did the trick.