Can't specify just the hostname for the backup server #156

Closed
opened 2019-03-25 14:42:05 +00:00 by dtu-compute · 5 comments

The shortest possible remote path seams to be

repositories:
    - 'borg@backup.example.com:borgmatic'

where I would really like to not have the last borgmatic part, as I on the Borg backup server have

command="cd /tank/borg/repos/client.example.com; borg serve --restrict-to-path /tank/borg/repos/client.example.com",restrict ssh-rsa ...

in each public key. I.e

I would much prefer to use have

repositories:
    - 'borg@backup.example.com:'

so I on the Borg backup server have

/tank/borg/repos/client.example.com/

instead of

/tank/borg/repos/client.example.com/borgmatic/
The shortest possible remote path seams to be ``` repositories: - 'borg@backup.example.com:borgmatic' ``` where I would really like to not have the last `borgmatic` part, as I on the Borg backup server have ``` command="cd /tank/borg/repos/client.example.com; borg serve --restrict-to-path /tank/borg/repos/client.example.com",restrict ssh-rsa ... ``` in each public key. I.e I would much prefer to use have ``` repositories: - 'borg@backup.example.com:' ``` so I on the Borg backup server have ``` /tank/borg/repos/client.example.com/ ``` instead of ``` /tank/borg/repos/client.example.com/borgmatic/ ```
Owner

Is there a particular error you're getting when you try to specify 'borg@backup.example.com:'? As far as I know, the repository string is passed directly to Borg. Thanks!

Is there a particular error you're getting when you try to specify `'borg@backup.example.com:'`? As far as I know, the repository string is passed directly to Borg. Thanks!
Author

I get

Command '('borg', 'list', 'borg@backup.example.com:')' returned non-zero exit status 2.

and if I use

repositories:
    - 'borg@backup.example.com:borgmatic'

then a directory is created in current directory called borg@backup.example.com:borgmatic.

I get ``` Command '('borg', 'list', 'borg@backup.example.com:')' returned non-zero exit status 2. ``` and if I use ``` repositories: - 'borg@backup.example.com:borgmatic' ``` then a directory is created in current directory called `borg@backup.example.com:borgmatic`.
Owner

Based on the borg list error you provided, this may just be a Borg limitation. Have you tried running the borg list borg@backup.example.com: command directly in your shell to see what Borg's output is like when borgmatic is not involved?

Based on the `borg list` error you provided, this may just be a Borg limitation. Have you tried running the `borg list borg@backup.example.com:` command directly in your shell to see what Borg's output is like when borgmatic is not involved?
Author

Ok, it is a Borg limitation. Closing.

Ok, it is a Borg limitation. Closing.
Owner

If you file a Borg ticket on this, please link to it here. Thanks!

If you file a Borg ticket on this, please link to it here. Thanks!
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#156
No description provided.