Last active
August 29, 2015 13:56
-
-
Save fgassert/8926988 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
S3DIR=s3://fgassert.com/old/ | |
FILENAME=old | |
PUTDIR=s3://fgassert.com/ | |
sudo apt-get install git -y | |
git clone https://github.com/s3tools/s3cmd.git | |
cd s3cmd | |
sudo python setup.py install | |
cd .. | |
mkdir $FILENAME | |
s3cmd -c .s3cfg get -r $S3DIR ./$FILENAME | |
tar -zcf $FILENAME.tgz $FILENAME | |
s3cmd -c .s3cfg put $FILENAME.tgz $PUTDIR | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment