Files
mastering-unix-ss/chapter27/function_run_all
Fabio Scotto di Santolo 4cc88d2f6e initial commit
2020-07-28 19:28:25 +02:00

22 lines
400 B
Plaintext
Executable File

run_all ()
{
# This function runs all of the backups defined in
# the Dirvish master configuration file stanza "Runall:"
clear # Clear the screen
echo -e "\n\n"
# Execute all master.conf defined backups
dirvish-runall
if (( $? == 0 ))
then
echo -e "\n\tBackups Complete...Press Enter to Continue...\c"
else
echo -e "\n\tDirvish Backup ERROR...Press Enter to Continue...\c"
fi
read KEY
}