Skip to content

Instantly share code, notes, and snippets.

@mofoster
mofoster / new_gist_file_0
Created August 19, 2014 00:24
Install S3cmd
# Install with:
# bash < <(curl -L https://raw.github.com/gist/2767174)
echo "Installing S3cmd..."
wget -O- -q http://s3tools.org/repo/deb-all/stable/s3tools.key | sudo apt-key add -
sudo wget -O/etc/apt/sources.list.d/s3tools.list http://s3tools.org/repo/deb-all/stable/s3tools.list
sudo apt-get update && sudo apt-get install s3cmd
echo "Done"
s3cmd --configure
@mofoster
mofoster / backup.sh
Created August 3, 2014 12:36
web & db backup shell script
#!/bin/bash
DOMAIN="melora.hk"
ADMIN="[email protected]"
DOCPATH="/var"
DOCNAME="www"
DBNAME="melora"
DBUSER="dbbackup"
DBPASS="93a09c1debd58578cd570fa0e4d1fb44"