Skip to content

A small(ish) shell script to upload files to S3 from the command line

License

Notifications You must be signed in to change notification settings

Aryess/shells3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ShellS3

Need to quickly upload and get a link to a file? This small Bash script will help you do just that.

The files are automatically given a timestamp suffix to avoid naming conflicts. For example, image.png will be uploaded as image-1430566517.png.

Usage

  1. Put the script somewhere in PATH (e.g. /usr/local/bin).

    cp shells3.sh /usr/local/bin/shells3
  2. Add a configuration file to ~/.shells3.conf. See shells3.sample.conf for a description of the configuration options.

    cp shells3.sample.conf ~/.shells3.conf
    vim ~/.shells3.conf # Edit the configuration in your favourite editor
  3. Upload a file

    shells3 image.png somedoc.txt

    Upload a file in a specific folder with specific permissions

     shells3 -p folder/in/bucket/ -a private image.png somedoc.txt

Compatibility and dependencies

Only tested on OS X 10.10 Yosemite, but the script should work on any unix-like operating system. Aside from Bash, the only dependency is curl.

License and Copyright

The MIT License (MIT). Copyright (c) 2015 Matias Korhonen

Based on Chris Parsons's s3.sh.

About

A small(ish) shell script to upload files to S3 from the command line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%