#!/bin/bash # make sure we're running as root if (( 0 != 0 )); then { echo "Sorry, must be root. Exiting..."; exit; } fi; # Run a backup for every .conf file in the /Backup directory cd /Backup for Script in *.conf do ./Snapshot ${Script} done # And send an e-mail with the list of Summaries; cat /Backup/*/Summary