View Single Post
Old 10-04-2017, 06:37 PM  
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
rm -f is a bad idea if you do not need it

plain rm is fine
Make a copy like I told you manually
then test your script manually have a plan b

try adding at the bottom of your script
Code:
$ echo "`date` backup done"
this will print this out
Wed Oct 4 21:28:16 EDT 2017 backup done

add this line to your cron and check what happened in the morning
Code:
0 6 * * 4 (cd /var/backup/mysql_backup/; ./backup_script_name.sh) | mail -s "subject backup done" [email protected]
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote