This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
OLD_HOSTNAME="$( hostname )" | |
NEW_HOSTNAME="$1" | |
if [ -z "$NEW_HOSTNAME" ]; then | |
echo -n "Please enter new hostname: " | |
read NEW_HOSTNAME < /dev/tty | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
# Dump route 53 zones to a text file and upload to S3. | |
BACKUP_DIR=~/dns-backup | |
BACKUP_BUCKET=<bucket> | |
# Use full paths for cron | |
CLIPATH="/usr/local/bin" |