This document provides tips and examples for creating shell scripts to automate database administration tasks. It recommends using shell scripts because shell is available everywhere and shell scripting is powerful and fast to write. It then provides several tips for writing robust shell scripts, such as using configuration files, running commands in parallel, and creating shortcuts. The document includes examples of scripts for installing MySQL replication across multiple servers and testing that replication is working.