0

Hello I'm currently using Amazon ec2 instance to run a wordpress website OS is amazon linux AMI and I'm using RDS as my database

I need to back up my website without downtime is that possible? RDS has already automated backup set everyday for a week.

How do I backup my ec2 instance without downtime?

1 Answer 1

0

I would arrange some sort of backup server and use something rdiff-backup to backup on a file level. Then also set up daily local dumps with mysqldump. Having file level backups allows for easy recovery of the most prevalent of errors: human error.

You could achieve the same with a separate volume, but then you could be completely wiped out when Amazon has a problem, or somebody gains access to your account.

BTW, do not have the PHP code writable to the webserver. Have them be owned by a separate user (including the docroot dir itself!) and use wp-cli. Then restrict PHP with an open base dir to its docroot. And, put a HTTP password on wp-login.php and /wp-admin (though that is harder, because some assets are loaded from there).

See the recent Linux Mint hack.

1
  • I'm really new to Amazon is there another way that is much easier?
    – Andrei
    Feb 23, 2016 at 15:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .