Created
June 29, 2016 13:31
-
-
Save viebig/a9109c8c75656e97888970871d386de0 to your computer and use it in GitHub Desktop.
Amazon EC2 Pipe to S3 with s3cmd
This file contains hidden or 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
sudo yum install unzip python-pip -y && \ | |
wget https://github.com/s3tools/s3cmd/archive/master.zip && \ | |
unzip master.zip && \ | |
cd s3cmd-master && \ | |
sudo python setup.py install && \ | |
cd .. && \ | |
s3cmd --configure | |
# Pipe example | |
# mysqldump ... | s3cmd put - s3://bucket/file-name.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks a lot!