So, in the mean time i searched for s3 tools, and found a bunch of them, i'll even try to keep a list.
As the system will grow (in size because of the sites and databases) having a system snapshot often will be a painful and resource intensive task, so probably i would make a snapshot once a week or even once a month because of system updates and software updates, otherwise it is pointless as i need another backup system for the database and other content that changes often.
So, for the content now i'm using s3sync.rb. I'm using it to backup once an hour (from a cron job) the /var/www,/var/log and /var/lib/mysql on S3.
I'll need to do some tricks for /var/lib/mysql, i'll start another mysql instance that will sync with the master on the same machine and when the cron job starts, it will stop the slave mysql server, backup to slave mysql data dir and start after the backup is done.
Beside storing them on S3, for the system logs i'm thinking on doing remote logging to another machine (the one outside amazon that i'm using as a dhis server). This is required as if the machine(in fact the EC2 instance) crashes i would really need the logs from the last minutes before the crash and those as those won't be backed up to S3 exactly before the crash :) .
Recent comments
1 year 22 weeks ago
1 year 26 weeks ago
1 year 35 weeks ago
1 year 42 weeks ago
1 year 45 weeks ago