Skip to content

Track changes in a directory and if changes detected synchronize that directory with an s3 bucket.

License

Notifications You must be signed in to change notification settings

vlatan/s3-offload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Offload Your Static Content to s3

The code is used in this article.

Your website has probably tons of static files. And for some reason you want those files to be copied over to an s3 bucket.

If you run detect-changes.py (preferably via cron), it will track the static files in your website and if changes are detected it will subsequently run s3-sync.sh which will synchronize your website with your s3 bucket (only the files you specify).

You just need to specify the paths to your folders/files in the scripts. Needless to say if placed in ~/.local/bin you can ditch the scripts' extensions and use them as shell commands too.

About

Track changes in a directory and if changes detected synchronize that directory with an s3 bucket.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published