Skip to content

Retain original directory structure #1456

@samuelallan72

Description

@samuelallan72

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions