Repository path not allowed #240

Closed
opened 2019-11-07 16:09:34 +00:00 by ThomasBlt · 2 comments

What I'm trying to do and why

(Self answering ticket ; for anybody with the same problem)

use borg after renaming a repository (repo dir)

Steps to reproduce (if a bug)

  1. Create and init a remote repo
  2. use borgmatic to create some backup
  3. rename the repository directory
  4. use borgmatic to create some backup ==> error
  5. figure out you need to use borgmatic's "relocated_repo_access_is_ok: true"
  6. use borgmatic to create some backup ==> error "Repository path not allowed"

Expected behavior (if a bug)

success

Environment

not applicable

#### What I'm trying to do and why (Self answering ticket ; for anybody with the same problem) use borg after renaming a repository (repo dir) #### Steps to reproduce (if a bug) 1. Create and init a remote repo 2. use borgmatic to create some backup 3. rename the repository directory 4. use borgmatic to create some backup ==> error 5. figure out you need to use borgmatic's "relocated_repo_access_is_ok: true" 6. use borgmatic to create some backup ==> error "Repository path not allowed" #### Expected behavior (if a bug) success #### Environment not applicable
Author

Problem : check if the remote user has been restricted to the old repository path
example : cat ~/.ssh/authorized_keys
command="borg serve --restrict-to-path /PATH_TO_YOUR_OLD_REPO/",restrict ssh-ed25519 AAAA.....

Solution : change the restricted path to the new value

Problem : check if the remote user has been restricted to the old repository path example : `cat ~/.ssh/authorized_keys` `command="borg serve --restrict-to-path /PATH_TO_YOUR_OLD_REPO/",restrict ssh-ed25519 AAAA.....` Solution : change the restricted path to the new value
Owner

Glad you figured this out! Thanks for noting the problem and solution.

Glad you figured this out! Thanks for noting the problem and solution.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#240
No description provided.