One S3 backup, encrypted on the fly.
Project description
Description
This tool is used at Seantis to create backups stored on various S3 compatible services using a very limited subset of S3 commands.
This is what you need to know:
Spare should not be used in production yet! Use at your own risk.
Buckets should be managed by spare exclusively, other files are deleted!
Each hostname must have a separate bucket for each backed up path.
Spare stores exactly one copy of your data.
Files are compressed using LZMA and encrypted on the client using AES-SIV.
During upload, spare is limited to one core and less than 100MiB of memory.
Duplicated files are stored only once.
If you forget your password, you cannot restore your files.
Spare is meant to be used with configuration management, the cli is minimal.
Python 3.6.2+ is required.
Usage
To install spare:
pip install spare
To set the connection parameters:
export SPARE_ENDPOINT=host export SPARE_ACCESS_KEY=access-key export SPARE_SECRET_KEY=secret-key
To backup a folder:
spare create --password my-password --bucket my-bucket --path /my-path
To restore a backup:
spare restore --password my-password --bucket my-bucket --path /my-path
To verify the backup (downloads everything!):
spare verify --password my-password --bucket my-bucket --path /my-path
Run the Tests
Spare uses Minio <https://www.minio.io> to run tests against a real object storage server. As a result it can take a bit for the first test run to complete, as Minio is downloaded and stored in the pytest cache directory:
pip install -e '.[test]' py.test
Build Status
License
spare is released under the MIT license
Changelog
0.1.1 (2018-05-04)
Lowers the number of requests needed to upload data. [href]
0.1.0 (2018-04-26)
Initial Release. [href]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file spare-0.1.1.tar.gz
.
File metadata
- Download URL: spare-0.1.1.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06c01f6946d9822d9ff0d608da2b2de213c2c11570a687438058a2b84837da7b |
|
MD5 | df022d2d0e9e8d294c6cb706726abd9a |
|
BLAKE2b-256 | ef236b9e0add0d8ae45fa9510afb08d3ae15a83e066ceda76dfad5f34cc47e54 |
File details
Details for the file spare-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: spare-0.1.1-py3-none-any.whl
- Upload date:
- Size: 25.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bc78cdbb992e948df7a1bbb6a8d1a490367b4ea342ac2e4d0e9e89ad370dabf |
|
MD5 | ab8b51de9104d2ff19e10ebea02fe168 |
|
BLAKE2b-256 | 8edae4eb1cf4b7162ee84e08df2b0c667976684d92f5e2f5bc54e6327cd05c92 |