Ssh syntax breake in config file #803
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#803
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
Hello,
I just want to try to create a repo for a new machine, using the new syntax for the config file.
To not have to reproduce all the setting (from another configuration), I use
borgmatic config generate --source config.yaml --destination config-new.yaml
I changed the hostname the
repository/path
and thessh_command
with the ssh port.Tried
borgmatic rcreate --encryption repokey-aes-ocb
but it failed. I change multiple times the way to indicate the custom port but all my try failed. Even with the help of your support in mastodon.A friend suggest to put the custom port into
~/.ssh/config
. The ssh command work immediately, butborgmatic create
still failed.I reread the documentation and find my issue. The path variable must be
ssh://user@remotehost/path-to-repository
???!!! And suddenlyborg create
works. Great \o/Steps to reproduce
Simply use in repositories/path the "old" ssh syntax:
ssh://user@remotehost:path_to_repo
, with semi-colon between host and repo path.Actual behavior
No response
Expected behavior
No response
Other notes / implementation ideas
Wait! The new syntax break the
ssh
way to indicate the path. Since I use UNIX (a long long time ago, more than 30 years), thessh
syntax is (and still id)ssh://user@remotehost:path-to-go
. With a semi colon between the remote host, and the path.It's not an important bug and reading the documentation solve it in less than 3 minutes. But it brake an old an know by all the UNIX sysadmin around the world. I think this is a mistake in the change of the new syntax.
Excuse my English, my knowledge is very old :-)
borgmatic version
borgmatic --version 1.8.2
borgmatic installation method
FreeBSD ppkg
Borg version
borg --version borg 1.2.6
Python version
python --version Python 3.9.18
Database version (if applicable)
No response
Operating system and version
FreeBSD 14.0-RELEASE-p3
Shh syntax breake in config fileto Ssh syntax breake in config fileThanks for taking the time to file this! Is it possible that you were just combining two different versions of the Borg repository URL syntax? For instance, you say that you expected
ssh://user@remotehost:path-to-go
to work. However, looking at the Borg documentation on this, I'm not sure that particular syntax is supported. What should work though is the old-styleuser@remotehost:path-to-go
syntax without thessh://
prefix. If that stopped working, then it would definitely be a bug (even though that syntax is deprecated)!I'm closing this for now, but I'd be happy to continue the discussion and/or reopen if necessary. Thanks!