Drupal

The five minute MySQL backup to S3

This short tutorial will teach you how to backup your MySQL database to Amazon S3. What you are going to need is:

  1. MySQL
  2. Amazon S3 bucket configured (prepare you access keys to configure s3cmd)
  3. s3cmd utility installed on the target server (yum install s3cmd). Configure with...

Redirect all website pages to index.html

If you would like to put your website offline and redirect all the pages to index.html using Apache and .htaccess, here's the snippet:

RewriteEngine on
RewriteCond %{REQUEST_URI} !^/index.html$
RewriteRule .* /index.html [R=302,L]