backpack.py is a python3 module used to encrypt and backup a directory or file for a specified GPG address. It can be run on it's own as a shell script or imported as a python module.
Example usage as follows below:
Used as a console script
$ backpack -p ~/Documents/test -d /Volumes/EXT -e jessefogarty@tuta.io
# Output
$ before-backup.zip: encryption ok
$ SUCCESS! Backup File: /Volumes/EXT/before-backup.zip.gpg
Imported backup python function
from backpack.backpack import backup
backup(p, d, e)
Note: It's important you have they GPG key you want to encrypt your data for already installed to ~/.gnupg
. Later versions will offer to generate if not found.
- Or, potentially forgo GPG for a dynamic keypair ¯\(ツ)/¯
Pip
pip install Backpack-Backup
Source
git clone https://github.com/jessefogarty/backpack-backup.git
cd backpack-backup
python3 setup.py install
Source 2
git clone https://github.com/jessefogarty/backpack-backup.git
cd backpack-backup
python3 -m pip install -r requirements.txt
python3 -m backpack
- Python 3
- GnuPG
- GPG key created (How To)
- 0.0.2 Current (Alpha)
- 0.0.2-1 (development)
- e-mail: [email protected]
- Twitter: @twitterhandle