Skip to content

Instantly share code, notes, and snippets.

@tingletech
Last active August 29, 2015 13:57
Show Gist options
  • Save tingletech/9702027 to your computer and use it in GitHub Desktop.
Save tingletech/9702027 to your computer and use it in GitHub Desktop.
DSC disaster recovery strategy

Keep a hot spare EBS volume in sync with production.

On dsc.cdlib.org;

  • run stunnel configured in server mode, set to exec rsync
    • specify connection must have specific client certificate
  • dump database to flat file

At 5am every day; start machine (attached boot EBS)

  1. mount zpool
  2. rsync from dsc.cdlib.org to DSC_DR zpool --rsh stunnel (client cert on this machine)
  3. zfs snapshot
  4. unmount zpool
  5. incremental snapshot DSC_DR ebs volumes to s3

create a script that can bootstrap a DSC/XTF server and mysql in Amazon and automatically test it and tear it down once a week.

In the event of a disaster in the UCOP datacenter, use the DR script to set up a new version of the site in Amazon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment