Skip to main content

No project description provided

Project description

A simple script to archive (logs) to an AWS S3 bucket.


See ansible-role-archive-to-s3.

The role will install an entry in the crontab to execute it periodically. However you are free to call it directly in the command line archive-to-s3.


The process is not preventing concurrent executions, so be aware of the risk.


Basic help:

$ archive-to-s3 -h
usage: archive-to-s3 [-h] --config CONFIG [--simulate] [--verbosity {0,1,2}]

optional arguments:
  -h, --help           show this help message and exit
  --config CONFIG
  --verbosity {0,1,2}

Archive stuff on S3.

Example configuration file (YAML):

enabled: true
  - name: logs
    bucket: my-app-log-archive
    delete: true
    directory: /var/log
    patterns: ".*\\.gz"
    # host_fqdn will be replaced by the result of socket.getfqdn()
    # e.g. on Amazon Web Services
    prefix: logs/my-app/{host_fqdn}

Project details

Download files

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

Files for archive-to-s3, version 1.0.5
Filename, size File type Python version Upload date Hashes
Filename, size archive_to_s3-1.0.5-py3-none-any.whl (4.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size archive-to-s3-1.0.5.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page