-
-
Notifications
You must be signed in to change notification settings - Fork 742
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
borg2: repository URL syntax #8372
Comments
It's because the borgstore code expects an URL and is unhappy with Not sure how to fix that, I think we also need to be consistent with general url syntax https://en.wikipedia.org/wiki/File_URI_scheme For |
Hmm, guess I could add a temporary hack to borgstore file backend to also accept file://relpath for now. |
Added a hack to work around this issue in borgstore 0.0.2: https://github.com/borgbackup/borgstore/blob/master/CHANGES.rst |
Hack works for me. Thank you, and sorry for not noticing that it is an issue related to borgstore. |
@bket no problem :) Leaving this open, guess we still have to think about the file URL. |
I thought and researched a bit about this in context of ssh: and sftp: URLs:
So, for borg that means:
Example:
Server side setup could mean:
|
local file URLs: when a borg user enters just compared to ssh/sftp, we don't have a server side (and thus no server side context/configuration) here. the context is the clientside cwd and gets resolved clientside also. remote file URLs (just as an example, there is no implementation for that):
|
@m3nu #8372 (comment) what do you think? I would like to have less hacks and more valid URLs. |
It seems like sftp://user@server/path urls usually(?) directly give an absolute fs path. restic interprets such a URL as having a relative fs path (similar to the idea i had above) and requires sftp://user@server//abs/path for an absolute path (hack? valid? at least it seems easy to process). |
Anything that keeps it simple for users is good with me. There is already the problem that people change their repo URLs and then wonder why it stops working. Since
When looking at HTTP, they omit the port and then the webserver resolves the local path. Never saw |
sftp://user@host:port/rel/path sftp://user@host:port//abs/path
ssh://user@host:port/rel/path ssh://user@host:port//abs/path remove the /./ and /~/ hacks.
6adf18d the URL changes can be seen there. There is a preference now for relative fs paths in sftp and ssh URLs (without the old So the first slash is now just the separator between host part and path part and not part of the path. |
Fixed by #8472. |
Have you checked borgbackup docs, FAQ, and open GitHub issues?
Yes
Is this a BUG / ISSUE report or a QUESTION?
Bug
System information. For client/server mode post info for both machines.
Your borg version (borg version)
2.0.0b10 / 2.0.0b10
Operating system (distribution) and version.
OpenBSD amd64 current
Full borg commandline that lead to the problem (leave away excludes and passwords)
borg repo-create -e repokey-aes-ocb --repo test
Describe the problem you're observing.
borg repo-create --repo
does not like relative paths as shown below. Absolute path is OK. This behavior differs from borg-2.0.0b9 asborg rcreate --repo
does accepts relative paths. This issue occurs with all borg-2.0.0b10 commands that accept--repo
.The text was updated successfully, but these errors were encountered: