Borg backup to server running on main domain, but on anther machine

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12
What app is this about: borg

Describe your issue

As I want to get serious with using yunohost, I want to do regular backups using borg.

I already backup my homerserver with borg, so I want to use it as the borg server.

My setup looks like this:

  • Yunohost running on a VPS and reachable yia yunohost.example.org with borg installed
  • Homeserver running under the stairs and reachable via example.org with borg installed

I just created users and SSH-Keys for borg on my homeserver. But I can’t connect to it from the borg server, because yunohost thinks it should reach example.org via localhost. I SSHed to yunohost and pinged for example.org and got localhost.
I can connect to the homeserver via its IP-address. But unfortunately every once in a while I get a new IP-address.
I would love to force SSH oder debian or whatever to do a regular DNS lookup for example.org and not resolve it to localhost.

Do you have any idea?

Share relevant logs or error messages

SSH to example.org:

# ssh -i .ssh/id_borg_ed25519 -p 7612 borgbackup@example.org
ssh: connect to host example.org port 7612: Connection refused

SSH to the IP:

ssh -i .ssh/id_borg_ed25519 -p 7612 borgbackup@287.2.34.2
Linux balkonien 6.1.0-25-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.106-3 (2024-08-26) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Puh, I’m already a bit closer.
It’s more of a issue with my setup, than an issue with borg backup - I guess.

The reverse DNS points to yunohost.example.org, so SSH directly tries to connect to localhost.

For the time being i will try to connect via the IP address an maybe add an additionally dyndns for the borg backup.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.