2. Copy new key pair to target server.
The long and short of this little trick is that you have to use
ssh-keygen to create new authentication key pairs for. we'll use these for automating login.
3. Dump the database.
gzip it's time to dump the database to a compressed archive on the target host.