Backpack.py - Encrypted Backups Made Easy.
A easy way to backup local data in realtively secure manner
Backpack is a python3 program that backsup local files / directories in a single GPG encrypted file. If the source data is a directory it will be zipped and then encrypted. The encryption is based on a reciepient email address associated with a public key.
[TOC]
Usage Examples
My use: after backing up my laptop to my desktop storage drives I'll run backpack. This compresses the directory whilst adding an extra layer of security. This is not production ready.
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)
Installation Methods
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.
Pipx (recommended)
pipx install backpack-backup
Pip
pip install Backpack-Backup
Source
git clone https://gitlab.com/unkwn1/backpack-backup.git
cd backpack-backup
python3 -m pip install -e .
Requirements
Version
- 0.0.3
TODO
- Accept passwords to unlock keyring.
- Generate / Export keys.
- Create a TUI.
-
will be fixed in next release for CLI. ↩
Release files for backpack-backup 0.0.3.post1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| backpack-backup-0.0.3.post1.tar.gz | 17.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| backpack_backup-0.0.3.post1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.6 kB
Release files / backpack-backup-0.0.3.post1.tar.gz
| Download URL | backpack-backup-0.0.3.post1.tar.gz |
|---|---|
| Size | 17.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb1e00222d1020e3f3b2e00d85dd4d210f2987ad1e4acfc9b65c8804f313e31c
|
|
BLAKE2b-256 checksum How to use checksums |
159b111e0f993ce286c72e2c69baa01a7b899fadee8b94fde572e5b9e91096be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|
Release files / backpack_backup-0.0.3.post1-py3-none-any.whl
| Download URL | backpack_backup-0.0.3.post1-py3-none-any.whl |
|---|---|
| Size | 18.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
039589ba231e80b71b858f0d5ff396b0937946df8293e8b5cbb6190f39c5ed85
|
|
BLAKE2b-256 checksum How to use checksums |
bff1197d1fc5c1115f3716faec3764da9c7dc87a973de1e21a5864f5d70ee66b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|