SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
3.02k stars 1.23k forks source link

[Package Request] Borg Backup #2351

Closed ghost closed 6 years ago

ghost commented 8 years ago

Description: BorgBackup (short: Borg) is a deduplicating backup program. Optionally, it supports compression and authenticated encryption. Website: http://borgbackup.readthedocs.io Documentation: http://borgbackup.readthedocs.io/en/stable/usage.html Build/Installation documentation: http://borgbackup.readthedocs.io/en/stable/installation.html Source Code: https://github.com/borgbackup/borg License: https://borgbackup.readthedocs.io/en/stable/authors.html#license

artelse commented 8 years ago

I just installed Borg onto debian-chroot and no problems compiling/installing. I am only having problems mounting volumes as posted in previous issue.

ghost commented 8 years ago

True, that's possible. But I think more people could use Borg if it was possible to install as a package.

The past months Borg Backup has grown to one of the best dedup backup programs I've know, and would love a 'native' solution.

kBite commented 6 years ago

@yuroller I'm very interested in this package. I have a DS218play and would like to help. Would you please list all open tasks here?

yuroller commented 6 years ago

If you are able to build packages for you ds unit, borgbackup should build and (hopefully) run correctly. Some time ago I successfully built borgbackup for all supported architectures by spksrc project, but I was able to test just on my ds212+ 6.0.2. You can find build instructions on wiki. Borgbackup depends on python3 packages, so you need both. Ask if you need help.

ymartin59 commented 6 years ago

Do not bother to build it yourself. I am publishing that package

noplanman commented 6 years ago

@yuroller Have you published your builds somewhere? Building with docker takes foreeeever... @ymartin59 Are you publishing others too? Where are they listed?

noplanman commented 6 years ago

:tada: Looks like Borg is now officially on the repo, great!

But it still needs a manual build/install of Python3, as the version on the repo is outdated. Will that be updated soon as well?

@ymartin59 Is there a way to contribute builds to the project?

ymartin59 commented 6 years ago

@noplanman What is your DSM architecture?

noplanman commented 6 years ago

@ymartin59 qoriq and armada370 are the ones I have.

I've built Python3 for both of them and installed Borg successfully, so all good :smiley:

noplanman commented 6 years ago

@ymartin59 I just noticed that the Python3 package on the SynoCommunity packages page is at 3.5.2-5, but the constraint for Borg is set at 3.5.2-6. As I still only see 3.4.1-4 in my DSM package center, I can't test to see if it works.

Also, I'd like to point to this comment, regarding the Python3 version constraint: https://github.com/borgbackup/borg/issues/719#issuecomment-383418808

mannp commented 6 years ago

@ymartin59 many thanks for creating these borg dsm packages, I have been trying to get borg going for some time on my dsm's without much success, so thanks!

Hoping the python version gets bumped at some stage to give them at try :grinning:

ymartin59 commented 6 years ago

I have published fixes with dependency to Python 3. Should be better.

noplanman commented 6 years ago

Awesome, thanks @ymartin59 :smiley:

So as soon as all Python3 builds are available on the SynoCommunity repo, this can probably be closed off here.

ymartin59 commented 6 years ago

From my point of view, all builds are already available... new borg package version can run with previous Python 3 revision.

noplanman commented 6 years ago

I still only see 3.4.1-4 in both my DS package centers.

They also aren't listed as available yet on the site, but I obviously don't know how that gets updated / rolled out (armada370 and qoriq): https://synocommunity.com/package/python3

Just using my own builds for now.

mannp commented 6 years ago

@noplanman seems its v3.5.2-6 now :grinning:

noplanman commented 6 years ago

@mannp Yes! Not for all architectures yet though, but probably very soon :innocent:

@ymartin59 On a side note: It would be great if the spk builds could be downloaded directly from the SynoCommunity site. That way, it would be easily possible to install them via command line, which doesn't work at the moment (or I haven't figured it out yet).

mannp commented 6 years ago

@noplanman yes I checked here -> https://synocommunity.com/package/python3 but you are right, my qoriq is still on the previous version.

As you say, I'm sure it'll arrive soon :)

ymartin59 commented 6 years ago

@mannp please update borgbackup (1.1.5-2) from Package Center, it should run with previous python3 version (3.5.2-5) you already have available for qoriq

mannp commented 6 years ago

@ymartin59 ok I see, but I only have versions 3.4.1-4 from synocommunity and 3.5.1-0108 from synology available.

Edit: So I tried with 3.5.1 and it complains, so perhaps the versions have not arrived on the qoriq yet? (plus 88f6282)

Python3 is currently built for these arch's: rtd1296 apollolake avoton braswell broadwell broadwellnk bromolow cedarview denverton grantley kvmx64 x86 x86_64

kBite commented 6 years ago

Because this package bundles borgmatic this may be the right place to ask: might someone bother to update bundled borgmatic from version 1.0.3 to latest (1.1.15).

I was able to successfully build borgbackup_rtd1296-6.1_1.1.5-2.spk with Docker, so bumping borgmatic seems uncomplicated:

diff --git a/spk/borgbackup/src/requirements.txt b/spk/borgbackup/src/requirements.txt
index 93406ef..2136059 100644
--- a/spk/borgbackup/src/requirements.txt
+++ b/spk/borgbackup/src/requirements.txt
@@ -3,4 +3,4 @@
 #msgpack-python==0.4.8

 # Downloaded dependencies
-borgmatic==1.0.3
+borgmatic==1.1.15
ymartin59 commented 6 years ago

borgbackup 1.1.5 has been published