-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Retain original directory structure #1456
Description
Currently the behaviour seems to be the following - with:
restic backup /path/to/some/file/NAME /another/path/to/different/NAME
warns that there was a filename collision and will end up with files NAME and NAME-1 in the snapshot.
I'd like to be able to use a flag that tells it to keep the directory structure so that the snapshot will contain path/to/some/file/NAME and another/path/to/different/NAME.
My use case is wanting to up backup a selection of important files (documents, keys, etc.) spread over the filesystem of my personal computer. I realize I could probably use something like restic backup --exclude-file some_huge_list_of_files.txt /, but that is going to be difficult to maintain.
If there is already a simple way to set this up, I'll be interested to know,
but I couldn't find anything in the docs.
Thanks.