[SIZE=“1”]Install the S3Tools[/SIZE]
Choose your repository that you need, I’m going with RHEL6 seeing as that’s what’s running under the hood, Check the List Here http://s3tools.org/repositories
cd /etc/yum.repos.d
wget http://s3tools.org/repo/RHEL_6/s3tools.repo <-Insert your REPO
yum install s3cmd
After that you’ll need to run the bouncing ball config here. Make sure you have your Amazon API and Secret Key handy
s3cmd --configure
Once configured we need a server backup script … I put mine in
/usr/sbin/FullBackuptoS3
#!/bin/bash
LOGFILE=/var/log/BackuptoS3.log
echo $(date) >> $LOGFILE
/home/interworx/bin/backup.pex --domains all --filename-format %Y-%m-%D --quiet --output-dir /var/backup
s3cmd sync /var/backup s3://sitebackup/ >> $LOGFILE
So what that does it dumps all the site backups to /var/backup and then syncs it with the S3 folder of your choosing… You don’t need to use the whole s3 name just your bucket name will do the s3 tools translates.
So now you need to
chmod +x /usr/sbin/FullBackuptoS3
Then create a CRON Job in the gui or cmdline
I set mine up in the GUI and simply wrote
FullBackuptoS3
as the command line and it’s working great
If you need to brush up on your Cron, Here’s the Documentation