borgbackup / borg

Deduplicating archiver with compression and authenticated encryption.
https://www.borgbackup.org/
Other
10.84k stars 734 forks source link

Distro packages needed #105

Closed geckolinux closed 7 years ago

geckolinux commented 9 years ago

This issue tracks ongoing work to package borg in various distributions.

Done items are documented in the install docs and should be edited there directly when new packages are published.

Non-exhaustive list of packages needing work:

Note: there are binary release packages for Linux, FreeBSD and OS X on the github releases page.

LocutusOfBorg commented 8 years ago

Debian is in new queue, and Ubuntu Xenial (the 16.04 LTS will probably have it).

mhalano commented 8 years ago

Where I can find Debian package?

LocutusOfBorg commented 8 years ago

un unstable as soon as it is processed from new queue https://ftp-master.debian.org/new/borgbackup_0.27.0-1.html

or you can build it from our git :)

anarcat commented 8 years ago

i unchecked Debian as done while we wait for the new queue. i think we should also aim for backports in jessie there as well.

LocutusOfBorg commented 8 years ago

well, we need some backports e.g. msgpack and setuptools-scm before

anarcat commented 8 years ago

sure, that would be fine as well i think.

rmoriz commented 8 years ago

Homebrew cask: https://github.com/caskroom/homebrew-cask/pull/15102

Background:

Cask is an addon-on for OSX HomeBrew to install binary-backages, see http://caskroom.io/ and https://github.com/caskroom/homebrew-cask/blob/master/USAGE.md for a introduction.

Motivation:

The homebrew-cask allows OSX uses to install the binary release of borg using the homebrew and cask toolchain with a single command.

I like the zero-dependency approach of the borg-binary releases. IMHO backup tools need to be self-contained as much as possible.

Usage, once merged by upstream:

qweq

update: added explenation as requested by @anarcat

anarcat commented 8 years ago

@rmoriz thanks! but what is "homebrew cask"? does that replace homebrew? should it be our sole source of OSX packages? what about regular homebrew, DMG images or darwin ports?

thanks for any clarification.

anarcat commented 8 years ago

@rmoriz thanks for the update, but what about the other questions? should we be providing DMG files or darwin ports?

rmoriz commented 8 years ago

@anarcat why not? I've just suggested homebrew-cask as one way. There is more than one way to do it. AFAIK there are still some MacPorts user out there.

I personally don't think a .DMG distro is that useful givent hat borg is cli-only, however if you decide to build and sign(!) .DMGs, the homebrew-cask cask can be modified to use the DMG and not the single-binary-release. Here's an example for Vagrant, a Ruby utility that gets released as a DMG (including all dependencies, like its own Ruby) and here is the cask for that

anarcat commented 8 years ago

okay, so darwin ports / macports is still an option, thanks!

DMG certainly doesn't make sense as long as we don't have a gui, see #314 and borgweb for that...

anarcat commented 8 years ago

marked guisd as in progress as @lfam is waiting for more testing before shipping it officially.

LocutusOfBorg commented 8 years ago

Debian accepted it from New queue, Ubuntu should follow in a few hours.

geckolinux commented 8 years ago

Could somebody possible create an openSUSE OBS repo for Borg? Thanks!

anarcat commented 8 years ago

@geckolinux i aded that to the list! let us know if there's any progress there.

anarcat commented 8 years ago

@LocutusOfBorg thanks for the updated, changed the summary accordingly.

LocutusOfBorg commented 8 years ago

Ubuntu sync'd https://launchpad.net/ubuntu/+source/borgbackup

anarcat commented 8 years ago

marked Ubuntu as done then. next focus on those would be backports i guess.

LocutusOfBorg commented 8 years ago

you can use "requestbackport" tool, but the build-dependencies are not there.

anarcat commented 8 years ago

i think that, once the debian package hits backports, we can add it to https://borgbackup.readthedocs.org/en/stable/installation.html#installation-distribution-package

same with ubuntu (and the others).

jungle-boogie commented 8 years ago

Regarding freebsd, it's easy enough to pip install borgbackup. Having a package would also install the deps, but for me it was just liblz4.

You already have the binary so it's simple/easy enough to download and put it in your path.

anarcat commented 8 years ago

of course, but it would be nice to have pkg install borgbackup working as well, no?

adidalal commented 8 years ago

borgbackup has been added to homebrew-cask (https://github.com/caskroom/homebrew-cask/pull/15102)

anarcat commented 8 years ago

alright, thanks! added OSX to the list of "distribution packages", as well as OSX, Debian and Ubuntu in #417.

i've also added the Arch Linux official repositories as an eventual target.

dragetd commented 8 years ago

With the help of Petric Frank and Thomas this ebuild (0.28.2) works for Gentoo: https://bugs.gentoo.org/show_bug.cgi?id=552470

To get it into portage, one would have to set up as the maintainer and submit it to the sunrise overlay (more people will test it there) or have a well-known gentoo member take care of it directly.

anarcat commented 8 years ago

@dragetd thanks, i updated the summary accordingly.

billyc commented 8 years ago

I created a Borg Installer for Windows, located here, based on the 0.28.2 release. Perhaps others would find this useful.

It encapsulates a tidy Cygwin install along with the dependencies required to run Borg. It includes a compiled (fast) version of msgpack-python, which took a while for me to figure out. =)

With this installed, a Windows user can run any regular borg commands from a cmd window or from batch files. Paths must still be specified in /cygwin/c/format but otherwise cygwin is mostly invisible.

Curious if anyone finds this useful; feedback welcome! I might automate the creation of the installer for future releases if that would be welcome.

anarcat commented 8 years ago

I think that's a great idea! Maybe a separate issue can be created about a windows installer and linked here? The issue (or pull request?) focus would be to document the binary creation process (e.g. in docs/development.rst) and maybe actual tools (scripts? setup.py?) to create the binary.

i'll update the summary accordingly.

billyc commented 8 years ago

That makes sense to me. I can write down the steps I took to create the installer. I'm unfamiliar with the current automated build process for borg so I'd need some help, but I'm happy to pitch in.

A real Windows installer that hides Cygwin from end users as much as possible is likely the only way to get traction on the Windows platform. Well, unless someone wants to make borg work natively on Windows! Which is much more work than just creating an installer. =)

jungle-boogie commented 8 years ago

Hi @billyc,

Thank you for creating the installer for windows. I didn't realize you packaged it with cygwin until after I installed the ~50MB file, so I'm happy to have both cygwin & borg on my windows computer!

bpereto commented 8 years ago

Hi, I'm from the fedora front here. I have done some packaging and opened a review ticket for adding borgbackup to the fedora repositorys: https://bugzilla.redhat.com/show_bug.cgi?id=1287837

anarcat commented 8 years ago

updated the summary, thanks! let us know how it goes.

brodul commented 8 years ago

I packed it into NIx package manager and NixOs linux distribution. https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/backup/borg/default.nix

anarcat commented 8 years ago

@brodul thanks, updated the summary! may this merits a PR on the install docs though, if it's really completed....

dragetd commented 8 years ago

My python/ebuild writing knowledge is limited, but if nobody else steps up, I'd volunteer for being a proxy maintainer on Gentoo. Ofcourse, Petric Frank would be also a good choice… so incase you want to take over, please do! :-P

So if there are no objections… applying right now and eventually borg will be in the portage tree soon.

ThomasWaldmann commented 8 years ago

@dragetd just do it. :)

NEOatNHNG commented 8 years ago

I added a backport for Ubuntu Wily (15.10) to my PPA

ThomasWaldmann commented 8 years ago

@NEOatNHNG thanks!

anarcat commented 8 years ago

@NEOatNHNG thanks, i updated the summary. we'll probably need to update the docs soon as well, as borg has entered debian testing (stretch) as well.

LocutusOfBorg commented 8 years ago

@NEOatNHNG can you please use the "backportpackage" tool next time? thanks!

NEOatNHNG commented 8 years ago

@LocutusOfBorg I would have, but there was an additional build dependency I had to add. I tried to do everything as would usually be done by backportpackage. Is there any place where I messed up?

anarcat commented 8 years ago

i made #550 to update the install docs to cover the backport PPA and Debian stretch, among other things.

LocutusOfBorg commented 8 years ago

@NEOatNHNG I did some additional work, and created a borg ppa that contains precise, vivid, wily packages (xenial is already at the latest version) https://launchpad.net/~costamagnagianfranco/+archive/ubuntu/borgbackup I can give you upload permission on this ppa if you want!

anarcat commented 8 years ago

@NEOatNHNG @LocutusOfBorg er... so what's the deal folks - i added @NEOatNHNG's PPA in the docs already, should i switch to @LocutusOfBorg ?

how are official backports handled in ubuntu-land anyways?

LocutusOfBorg commented 8 years ago

I'll try to backport them in Ubuntu, but I recently became an Ubuntu Developer, and my backports are still in the unapproved queue e.g. https://launchpad.net/ubuntu/wily/+queue?queue_state=1&queue_text=

so, the todo might be: use my ppa (just because I'll try to keep updated when I upload on Debian and Ubuntu official repositories), and then remove it for the official Ubuntu backports.

anarcat commented 8 years ago

any idea how long that would take? just trying to keep the docs commit churn low here. :)

i don't see borg in the url you pasted...

LocutusOfBorg commented 8 years ago

you don't see borg because we prior need to backport the dependencies, and with setuptools-scm not building on backports anymore it becames difficult to have borgbackup. the ppa should be fine.

anarcat commented 8 years ago

@LocutusOfBorg ok then i guess i'll let you do the PRs to handle the docs changes here, follow #550 for an example!

ThomasWaldmann commented 8 years ago

There is also: http://pkgsrc.se/sysutils/py-borgbackup

anarcat commented 8 years ago

it would be great if people would make pull requests instead of just saying "hey, package X is in Y"... should we add a note in the docs to make it more obvious how people can contribute?