Skip to main content

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

Build Status

License

spare is released under the MIT license

Changelog

0.1.2 (2018-05-10)

  • Increases the download speed during restore operations. [href]

  • Shows a warning when a user/group could not be found during restore. [href]

  • Lowers the timeouts and retry rates. [href]

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spare-0.1.2.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

spare-0.1.2-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

Details for the file spare-0.1.2.tar.gz.

File metadata

  • Download URL: spare-0.1.2.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for spare-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5cf57f421313fce67150673734a854a3faa76a5fb2c58d2a83627ff6a6de8ed5
MD5 e9b3c68e09f58aedef31dff096ea784b
BLAKE2b-256 e55fe514ed2bddf534b1436c32636760eeed4cc55cac67422c4373be5fdf145d

See more details on using hashes here.

File details

Details for the file spare-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for spare-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ae886d933ea6b898588d486730d85a5500f5885bece711ff6304666b41597563
MD5 b07aa9b53aa687d5823c39b2a22b3e96
BLAKE2b-256 ccbd62e332725c21f731ada8714421af86825870b8b380cdbd0b6049c3f287c6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page