×
×

Knowledgebase & Downloads

DRaaS for DirectAdmin with Togglebox's failover DNS configuration

For DirectAdmin systems, Togglebox's disaster recovery service can help recover contents that have been saved to disk, as well as bring DirectAdmin online in another datacenter, should the original system become unreachable or unusable.

With our DRaaS configuration, there are two systems, a main DirectAdmin system that is online, and an offline standby in another location with similar resources.

System #1: Dallas DirectAdmin - Normally online, hourly snapshots are stored on-site and sent to our Philadelphia site.

System #2: Philadelphia DirectAdmin - Normally offline, reserving resources that are similar to System #1.

During setup, a DNS entry is added with a TTL of 1 minute to point to System #1, with System #2 as a failover. When System #1 becomes unreachable, this record is replaced with System #2's IP address.

Once Togglebox staff restore the backup to System #2, it can be reconfigured to continue serving sites while System #1 is down.

To reconfigure DirectAdmin to use the new IP addresses, log into System #2 via SSH and swap IP addresses using the command-line:

/usr/local/directadmin/scripts/ipswap.sh
Usage:
./ipswap.sh <oldip> <newip> [<file>]
you gave #0: ./ipswap.sh

A reboot, or restarting all dependent services is recommended after the IP swap is complete.

Note: If you have databases, a regular dump to the local disk is recommended for consistency purposes.