Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

SSH Port for Borg Backup #3527

Open
gitayam opened this issue Sep 14, 2024 · 2 comments
Open

SSH Port for Borg Backup #3527

gitayam opened this issue Sep 14, 2024 · 2 comments

Comments

@gitayam
Copy link

gitayam commented Sep 14, 2024

For different reasons SSH ports are not always on 22 , being able to configure borg to backup to a server with a custom ssh port is helpful and expands accessibility.

Solution would include:
Adding documentation to have a user log into the matrix server to manually configure the ssh config

nano ~/.ssh/config


#Add in the the ssh port and ip
Host backup-server
    HostName ip.ip.ip.ip
    Port ###
    User root

and or the solution of allowing the ssh port to be configured in the ansible var yml

backup_borg_ssh_port: ###
backup_borg_location_repositories:
 - ssh://backup-server/Backups/Matrix/Path/

This is the documentation for configuring borg which would need to be updated

@aine-etke
Copy link
Contributor

You may find useful checking role vars: https://github.com/mother-of-all-self-hosting/ansible-role-backup_borg/blob/main/defaults/main.yml#L95

It would be great if you could send PR with docs updates 😉

@sarah4d2
Copy link

Setting a custom SSH port in vars.yml is already possible like this:

backup_borg_location_repositories:
  - ssh://USER@HOST:PORT/path/to/repo

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants