Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try parallel ops using --bypass-lock #5261

Open
ThomasWaldmann opened this issue Jul 25, 2020 · 2 comments
Open

try parallel ops using --bypass-lock #5261

ThomasWaldmann opened this issue Jul 25, 2020 · 2 comments
Labels

Comments

@ThomasWaldmann
Copy link
Member

@ThomasWaldmann ThomasWaldmann commented Jul 25, 2020

borg usually does not let you do multiple operations in parallel. it blocks that using an exclusive lock on the repository.

there is a (potentially dangerous) hack with --bypass-lock.

for some situations, it might actually work ok without leading to problems.

practically try:

  • borg create repo::archive lotsofdata plus borg mount repo
  • borg mount repo plus borg create repo::archive lotsofdata
  • (and other read-only operations like borg list)

Do not try multiple repo-writing ops in parallel!
Do not use a production repo for experiments, just create a temporary one!

@ThomasWaldmann ThomasWaldmann added the easy label Jul 25, 2020
@laur89
Copy link

@laur89 laur89 commented Nov 10, 2020

Could the --bypass-lock opt allow read-only operations, but bail if concurrent write options are attempted?

@ThomasWaldmann
Copy link
Member Author

@ThomasWaldmann ThomasWaldmann commented Nov 10, 2020

No, it's a hack and not a enhanced locking system. That might come later, but don't hold your breath.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.