Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # YAM SNYC to AWS S3 Bucket
- # by Jon Leverrier (jon@youandmedigital.com)
- # Version 0.1
- # To be used with cron, or run manually from the command line.
- # Example usage:
- # /bin/bash yam_sync_s3.sh /local/path/ /s3/path/"
- # Script requires s3cmd package to be installed and configured
- # apt-get install -y s3cmd
- # DEFAULT SETTINGS
- BUCKET='yourbucket'
- # VARIABLES THAT ARE PASSED IN TO THE SCRIPT...
- FOLDER_LOCAL=$1
- FOLDER_S3=$2
- s3cmd sync --delete-removed --skip-existing $1 s3://$BUCKET$2
Add Comment
Please, Sign In to add comment