Skip to main content

No project description provided

Project description

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

Installation

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.

Usage

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
  --simulate
  --verbosity {0,1,2}

Archive stuff on S3.

Example configuration file (YAML):

enabled: true
transfers:
  - 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. ip-10-1-2-180.eu-west-1.compute.internal 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.

Source Distribution

archive-to-s3-1.0.5.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

archive_to_s3-1.0.5-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file archive-to-s3-1.0.5.tar.gz.

File metadata

  • Download URL: archive-to-s3-1.0.5.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8

File hashes

Hashes for archive-to-s3-1.0.5.tar.gz
Algorithm Hash digest
SHA256 566bbd276cf999009a95756ce7070d6a9e75fc656349120465267bd28ca43343
MD5 3c88c0243b286a3ba81cc4970add4ccd
BLAKE2b-256 8acf5aa3d75ae2d5c7fb43ea5e453794e9f78d6278e4aab658b8a942b5f1c745

See more details on using hashes here.

File details

Details for the file archive_to_s3-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: archive_to_s3-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8

File hashes

Hashes for archive_to_s3-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d37b3f133694a606079077eecf2fa75c98d880f5fa50e5be48c599e08b2b83ec
MD5 7d506a2f4632e7ce5a560eea768f0a44
BLAKE2b-256 00394f1638be3494a79836ca9ccaef54cdf68192b1a2a106fdb91a1cc1759695

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