Installing borgbackup via pip fails

Hi;

any idea why this doesn’t work. i’d like to test this backup tool but get

 pip install borgbackup

Collecting borgbackup
Using cached https://files.pythonhosted.org/packages/c9/4d/dd06d8787f8faa8c50a422abd9ba14be15ee0b5830e745033815c49d5313/borgbackup-1.1.15.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-install-gYGLsG/borgbackup/setup.py”, line 405
column_count = max(columns for columns, *_ in rows)
^
SyntaxError: invalid syntax

----------------------------------------

Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-install-gYGLsG/borgbackup/

Why would you install it via pip?
Use sudo apt-get install borgbackup

ah, was just reading the borg docs. not sure I can get the lastest via apt-get though. Checking now with apt-get -s installwhat’s there. Thanks for the pointer.

Ok. It’s not the latest versions both of borgbackup and borgmatic but I’ll give it a go. Thanks again @fzinken

If your not aware one of our devs wrote a utility to backup the entire system instead just Kodi’s user data. It can be fount at the following link.

that’s nice! I’m using borg, before it was restic, to backup my attached HDDs…

1 Like

I need to install from backports since the version is severely buggy I learned.How would I do this. I found Debian -- Details of package borgbackup in buster-backports

I have Borg installed on my Vero (test kernel 4.9, borg 1.1.9) and it works perfect. At least the backups work. I’ve not yet had to do a restore.

https://backports.debian.org/Instructions/

I just checked, and the latest Borg is 1.1.15, and from the docs it’s completely compatible with the current 1.1.9 that I have on the Vero.
What version are you worried about being buggy?

I got 1.1.9 and posted an error message over at borg – they recommended to go w/ the latest as 1.1.9 is supposed to be super buggy…

Interesting, I’ve not seen this. So why not just install using git? Then you can be on the version that you choose?
I’ll update mine via git later as its late here.

hmm, I’m not so much of an expert and wouldn’t know how to do this correctly with Git… I try it w/ backports

I’ll look at this more when I get up later today. I did try using a virtualenv and pip, but it fails because of openssl. Not sure why.

I updated to the backport version but still get the same error on the same repo (not on a new one, see below), see at borg

What is the exact borg command that you are using to start the backup?

I just use borgmatic, hoping everthing is set correctly. I’m using the default template, just added the repo and the dirs to backup.
The external HDD is named Toshiba EXT, mabye the path causes some issues

Created a new repo and this one seems to work, also I’m now adding one dir after the other instead of everything (60GB) at once – let’s see.

@bmillham this might interest you Important notes — Borg - Deduplicating Archiver 1.2.3 documentation