Skip to content

Using multiple bind mounts with private repositories enabled #336

Description

@littlegraycells

Output of rest-server --version

restic/rest-server | latest | e4fb8546f625 | 8 months ago | 15.3MB

Problem description / Steps to reproduce

My setup includes two separate bind mounts (which are actually 2 separate disks attached to the host), which I mount into /data such that I have something like /data/sda and /data/sdb` inside the container. What I want to do is to have separate sets of repositories in these two locations.

Expected behavior

With private repos enabled, I should be able to create a repo using rest:https://user:pass@fqdn/sda/repo and/or rest:https://user:pass@fqdn/sda/user/repo.

Actual behavior

If I don't use private repositories, I am able to create repos with rest:https://user:pass@fqdn/sda/repo or rest:https://user:pass@fqdn/sda/user/repo. However, if I enable private repos, neither of those work, only rest:https://user:pass@fqdn/user/repo.

Do you have any idea what may have caused this?

No. I imagine the code is enforcing some sort of path requirements with private repos?

Did rest-server help you today? Did it make you happy in any way?

Yes, I am really happy with this project. This combined with backrest is ❤

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions