-
-
Notifications
You must be signed in to change notification settings - Fork 752
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
borg serve ignores --repo attribute for repo-create #8591
Comments
OK, just quickly checked |
I don't think one was ever supposed to use The reason why the Also, please don't confuse a repository with an archive (like in A repository is the container (usually a directory), an archive is the result of a single backup. A repository contains archives. |
This means to use a relative path These are the relevant docs (and they changed recently!): https://borgbackup.readthedocs.io/en/2.0.0b14/usage/general.html#repository-urls Especially:
"current directory" here means the cwd of the |
i see... this is unfortunate, this was a good way for me to isolate the client path from the server implementation. e.g. Also, if I can live with it but I still would like to point out that if i would be a provider, (like borgbase) this makes the whole user experience less transparent. I will verify ASAP that absolute paths work as expected, thanks for looking into this |
@andresbott Since the recent change to interpret the repo path as a relative path, there now actually is some isolation:
OTOH, using full absolute paths in the repo URLs (with the new syntax) is also possible, but does not have the advantages I listed above. |
Got it, thanks for clarifying. Thanks |
We could check whether an error msg can be emitted by |
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 -V).
bug reproduced with borg vers 2.0.0b13 and 2.0.0b14
Operating system (distribution) and version.
OS for both client and server:
Debian stable bookworkm AMD64 Linux 6.1.0-13-amd64
Hardware / network configuration, and filesystems used.
Full borg commandline that lead to the problem (leave away excludes and passwords)
Describe the problem you're observing.
on the server i have my ssh config as follows:
.ssh/authorized_keys
on the client, set env vars
uppon trying to create the repo with
i get the following FileNotFoundError error
it looks like the --repo argument is ignored from the serve command (at least on the create step) and the repo path falls back to the severs user home.
workaround: after downgrading to borg 2.0.0b12 repo creation worked without any issue
The text was updated successfully, but these errors were encountered: