Skip to content

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

License

Notifications You must be signed in to change notification settings

arun-gajaraj/s3vf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published