PHP script to backup and sync s3 buckets between aws accounts
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
samples
src
tests
LICENSE
readme.mdown

readme.mdown

README

PHP script to backup and sync s3 buckets between AWS accounts

The project requires:

  • PHP >= 5.2.1
  • s3cmd command line

Setup on AWS Linux AMI:

curl http://s3tools.org/repo/RHEL_6/s3tools.repo > /etc/yum.repos.d/s3tools.repo
yum install -y php git s3cmd
git clone git://github.com/aporat/s3backup-bucket.git

Setup a seperate EBS Volume for large S3 Buckets:

  • Create a EBS Volume on the same region of your instance
  • Attach the volume to the instance as /dev/sdf
  • Format the volume as ext4 and monut it
mkfs -t ext4 /dev/sdf 
mount /dev/sdf /data
echo "mount /dev/sdf /data" >  /etc/rc.local