Skip to main content

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}

Metadata

Release files for archive-to-s3 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for archive-to-s3 1.0.5
File Size Uploaded Provenance Actions
archive-to-s3-1.0.5.tar.gz 3.7 kB Without provenance Details for archive-to-s3-1.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for archive-to-s3 1.0.5
File Interpreter ABI Platform Actions
archive_to_s3-1.0.5-py3-none-any.whl Python 3 none any Details for archive_to_s3-1.0.5-py3-none-any.whl

Total release size: 7.9 kB

Release files / archive-to-s3-1.0.5.tar.gz

Download URL archive-to-s3-1.0.5.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
566bbd276cf999009a95756ce7070d6a9e75fc656349120465267bd28ca43343
BLAKE2b-256 checksum
How to use checksums
8acf5aa3d75ae2d5c7fb43ea5e453794e9f78d6278e4aab658b8a942b5f1c745
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / archive_to_s3-1.0.5-py3-none-any.whl

Download URL archive_to_s3-1.0.5-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d37b3f133694a606079077eecf2fa75c98d880f5fa50e5be48c599e08b2b83ec
BLAKE2b-256 checksum
How to use checksums
00394f1638be3494a79836ca9ccaef54cdf68192b1a2a106fdb91a1cc1759695
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for archive-to-s3 1.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page