s3vf

command module
v0.0.0-...-e961e8a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 8 Imported by: 0

README

s3vf

A simple command line utility to download the old versions of a file from s3 when the aws console can't help.

Pre-req:

Env Vars:

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • AWS_SESSION_TOKEN
  • S3_BUCKET_NAME [optional]
  • S3_BUCKET_REGION [optional]
  • S3_OBJECT_KEY [optional]
  • INDENT_JSON [optional; example: true]
to run from source:

go run s3vf.go <s3_bucket_name> <s3_bucket_region> <object_key>

or

go run s3vf.go

How it works?
  1. Set the Variables and run
  2. Enter the Date and Time Range and the versions within that time will be downloaded to ./downloads

  • Files will be named: [version-last-modified-time] - [version-id].extension
  • Uses Local Time
  • Option to have the JSON file Indented

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL