Attempting to set up borg, assistance appreciated

I have searched the forum for similar issues

on

This category is for issues regarding specific apps, NOT general issues with YunoHost.

on

This form is written in English :uk: but feel free to write in French :fr: if you’re more comfortable!

on

What type of hardware are you using

Raspberry Pi 3, 4+

What YunoHost version are you running

11.2.31

What app is this about

Borg Backup, Borg Server

Describe your issue

I have been attempting to set up borg, and I have been encountering a great number of issues throughout this process.

My current issue? When I tried to reinstall Borg Backup, the post-install notification was missing the fields that were needed to install borg_server. I uninstalled both, since I was having an issue getting them to work. At first, I was having issues with the formatting, since it appears to have changed, but the documentation contradicts this change. I had to discover it through trial and error. Then, every time I would run borg, the borg_server instance’s SSH would lock up (connection refused), and I would be forced to restart the instance to make another attempt (just restarting SSH did not fix it). Then, once that was figured out, something was not being properly communicated, and I was getting authentication errors, despite installing borg server through the command line command provided by the post-install notification. This brings me back to now, where I reinstalled. I will attach a number of logs.

Share relevant logs or error messages

Initial Install: https://paste.yunohost.org/raw/puxogesoko
Me learning that the format is wrong: https://paste.yunohost.org/raw/videyoneru (using main@192.168.1.247 worked. Note the lack of ssh:// and :22, despite these being specified in the config panel.)
Connection Refused: https://paste.yunohost.org/raw/ciqisukehi
From borg client, this is the authentication error: https://paste.yunohost.org/raw/ifununukif
Remove borg https://paste.yunohost.org/raw/amucegisum
reinstall borg (bad postinstall) https://paste.yunohost.org/raw/hetesoviyu
Borg Server: https://paste.yunohost.org/raw/cufepiciso
Borg Server Uninstall https://paste.yunohost.org/raw/honabeciga

(I did not censor this post install message at all)

(Connection refused even when attempting to connect through a different SSH user)
image

It should be noted that I have both of these hosts on the same local area network.

More logs:

First Backup in logs, new install attempts: https://paste.yunohost.org/raw/ebekesedat
Second Backup in logs: https://paste.yunohost.org/raw/eziduqabun

It feels like a miracle that the initial installation worked this time without me needing to truncate it. No idea why it told my it was incorrectly formatted before.

I have the same issue with authentication, could someone please tell me what I am doing wrong?

Is it related to this? Surely this would have been patched out in the last 11 months.

after reading all this about your borg problems, i would suggest giving restic a try.

restic seems more straightforward to me. if you aren’t going to stick with built-in backup, you might want to take a look. if you don’t like it, you can go back and try to troubleshoot this more.

1 Like

You can give GitHub - YunoHost-Apps/backrest_ynh: Backrest package for YunoHost a try

2 Likes

…Did borg backup just lose it’s “long-term well maintained” star from the application catalogue?

I’m a little embarrassed. I hadn’t set up fail2ban, and the “connection refused” was actually from being banned. I figured it out since my reverse proxy was returning a 502 too, despite the remote server being up.

I did install borg again to double check that being banned wasn’t the cause of this problem, and it still did not function. I just wanted to clarify that part of my issues here were my fault. For all I know, all of these issues are somehow my fault.

I will be checking out backrest. I only wonder if it’s wise to use SFTP to backup. I imagine I’ll create a whole new user on my remote machine. I really appreciate the suggestion from both of you, both the idea to use restic, and the ability to use a yunohost package.

1 Like

if you know how to write a bash script, or want to learn…you can use restic with cron jobs and no backrest. If you want the GUI check out backrest.

I’m a terminal person, so I did restic + cron jobs. You can look at how I set this up awhile ago.

1 Like

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