-
-
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
Confusion about SFTP-URLs #8380
Comments
Issue appears to be much simpler than that:
SFTP is not recognised as its own backend, but URL is parsed as proto |
Oh, apparently there's 2 things:
|
I see the mandatory user was already found out (#8373 (comment)), addressed (borgbackup/borgstore#26) and merged. However borg/master still references version v0.0.1 of borgstore (not that v0.0.2 would make a difference here, as it got merged after v0.0.2 was released) |
borg2 b11 and current master branch requires |
Also, I think having a bare The Side note (not relevant here, just related and curious): scp-style ( |
In the traceback, there seems to be another problem: using
So, in the end, because you didn't start with |
TODO: update borg sftp url docs (add more examples / remarks) after borgstore 0.0.3 is out. |
While you're right and I was wrong about most parts (e.g. ':' only used in SCP URLs for indicating absolute paths):
I did start ALL my URLs with |
Read the "FileNotFoundError" line again: there is only a single slash, not Hmm, maybe that could be also caused by some path normalisation? So you gave double slash, but as it thought it is a file path, it normalised it to only contain single slash separators. |
I mean, just try it yourself :)
|
borgstore 0.0.3 released! |
Have you checked borgbackup docs, FAQ, and open GitHub issues?
Yes
Is this a BUG / ISSUE report or a QUESTION?
QUESTION
System information. For client/server mode post info for both machines.
Your borg version (borg -V).
2.0.0b11.dev3+gc278a8e8
Operating system (distribution) and version.
Debian testing/Trixie
Full borg commandline that lead to the problem (leave away excludes and passwords)
export BORG_REPO='sftp://HOST:/storage/backup/borg2' ; borg repo-create -e keyfile-blake2-chacha20-poly1305
Describe the problem you're observing.
It's not entirely clear from the docs how to initialize a repo when using the SFTP backend - and if (needed) at all.
https://borgbackup.readthedocs.io/en/master/usage/general.html#repository-urls lists repository-URLS - incl.
sftp://
ones, also stating it might make sense to store the URL in the env varBORG_REPO
.Env-var
BORG_REPO
is also used byrepo-create
, however fails when URL indicates sftp-backend.It appears confusing/unclear how to create and use a repo via the SFTP backend, especially since the Quick-Start (https://borgbackup.readthedocs.io/en/master/quickstart.html#a-step-by-step-example) states
repo-create
as first step - no mention of e.g. "don't use with SFTP-backend".Log
The text was updated successfully, but these errors were encountered: