Skip to content

Instantly share code, notes, and snippets.

@RAOF
Last active January 16, 2018 04:56
Show Gist options
  • Save RAOF/9dabbcc8ee93d5dd0d2776ae7b0f9e51 to your computer and use it in GitHub Desktop.
Save RAOF/9dabbcc8ee93d5dd0d2776ae7b0f9e51 to your computer and use it in GitHub Desktop.
From-source Borgbackup snapcraft.yaml
name: borg-fenriswolf # you probably want to 'snapcraft register <name>'
version: '1.1.4'
summary: Deduplicating archiver with compression and encryption
description: |
BorgBackup is a deduplicating backup program.
Optionally, it supports compression and authenticated encryption.
The main goal of Borg is to provide an efficient and secure way to backup data.
The data deduplication technique used makes Borg suitable for daily backups
since only changes are stored.
The authenticated encryption technique makes it suitable for backups to not
fully trusted targets.
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots
apps:
borg:
command: bin/borg-launch
plugs: [home, network, network-bind, removable-media, fuse-support]
parts:
cython-hack:
plugin: python
source: "null"
python-version: python3
requirements: requirements.d/development.txt
prepare: rm src/setup.py
borg:
plugin: python
python-version: python3
source: https://github.com/borgbackup/borg.git
source-tag: 1.1.4
install: python3 setup.py build
after:
- cython-hack
python-packages:
- msgpack-python
- setuptools
- Cython # for some reason this isn't enough to successfully build borg
build-packages:
- cython
- python-sphinx
- libssl-dev
- liblz4-dev
- libacl1-dev
- libfuse-dev
- pkg-config
- fuse
- libzmq3-dev
- python3-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment