Yesterday I was developing a new feature on Mashape and I wanted to backup my local DB. So I wrote a small script to backup data of a list of sb (variable $DB) in a folder db-20110115 and to have it replicated on another pc in my LAN (just in case..) via ssh (with rsa key to be scheduled in cron). #!/bin/bash # CONFIGURATION DBS=“db1 db2” DUMP_LOCATION=~/backup DIR_NAME=db-`date +%Y%m%d` DIR_NAME_