1

Compare File & Copy Replace if Successful

view story
linux-howto

http://stackoverflow.com – I have written a shell script that creates a backup of my MySQL database. The script performs the following functions: Creates a Backup of the MySQL database Compresses the Backup Copies the Backup to a Remote Server Send an E-Mail displaying the size of the Backup Removes any left over files on the source server not needed. What the script doesn't do, but what I need it to do: Check the newly created Backup against the existing backup on the remote server If the new backup is smaller than the old backup, send a WARNING Notification via e mail / sms. If the new backup is larger (HowTos)