Skip to main content

A simple S3 backup script

Project description

Humus is a tool to periodically backup chunks of data (e.g. database backups) to Amazon’s S3. Humus’ features include:

  • CLI tool and Python library.

  • Automatic file rotation

  • Automatic date based file trimming.

Why another S3 backup tool?

Most of the backup tools out there were either foucused on backing up entire directories of files or didn’t provide the rotation/trim tools I was looking for.

Installation & Use

  1. Run pip install humus.

  2. Create a config file like the following at ./humus.ini, ~/humus.ini, /etc/humus.ini, or /etc/humus/humus.ini:

    [AWS]
    access_key=< YOUR AWS ACCESS KEY >
    secret_key=< YOUR AWS SECRET KEY >
    bucket=some-bucket-name
    
    # Everything after this point is optional
    path=bacups
    
    [humus]
    # The number of files to exist in the S3 directory before getting trimmed
    count_limit=2
    # The age in days where files should be trimmed
    age_limit=2
    # The chunk size in bytes for data to be passed to bz2
    chunk_size=1024
  3. Run the command humus my_filename target_file or output_cmd | humus my_filename whenever you want to make a new backup.

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

Humus-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file Humus-0.1.0.tar.gz.

File metadata

  • Download URL: Humus-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Humus-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b23f72bb5caf7d4ef6f5b5cdb20021612e344c09b5ee54414c314bd510521077
MD5 44896f4b9e1bcfd27f53b305c31fbc4b
BLAKE2b-256 4d1f27fc45ad8a2aab09e2de379abbfb750267cfbca3344206eec267c49942bd

See more details on using hashes here.

Supported by

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