1

Compare and Replace

view story
linux-howto

http://www.unix.com – Hi, I'm running a shell script to do a daily backup of my mysql database. The backup is done using: Code:   mysqldump db1 > db1.sql --user=rootuser --password=rootpassword &&  mysqldump db2 > db2.sql --user=rootuser --password=rootpassword This file is saved in my root directory replacing the old/exisiting backups. To improve on this I would like to have a part of the script create the backup, then once the backup is created, check if the backup was completed successfully, and then check if the new backups are larger than the old backups. If both these conditio (HowTos)