Skip to content

Instantly share code, notes, and snippets.

@mmaridev
Last active March 19, 2019 10:00
Show Gist options
  • Select an option

  • Save mmaridev/ad184a7228483d945b6fc6abd441093a to your computer and use it in GitHub Desktop.

Select an option

Save mmaridev/ad184a7228483d945b6fc6abd441093a to your computer and use it in GitHub Desktop.
Compile borg from sources to standalone
#!/bin/bash
cd /tmp
pip3 install virtualenv
if [ ! -e borgbackup-1.1.9.tar.gz ]; then
wget https://github.com/borgbackup/borg/releases/download/1.1.9/borgbackup-1.1.9.tar.gz
fi
tar xvzf borgbackup-1.1.9.tar.gz
virtualenv --python=python3 borg-env
source borg-env/bin/activate
cd borgbackup-1.1.9
pip install -r requirements.d/development.txt
pip install pyinstaller
pip install -e .
cd src
pyinstaller -F -n borg-linux-64-new --hidden-import=logging.config borg/__main__.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment