Backup


'''Backup Script'''
located at /usr/local/sbin/backup_vtiger"
scheduled to run at 3:00 AM every day.
creates a zip file of everything in "/var/lib/mysql"
zip file created in "/backup/vtiger_backups"
log file in "/backup/vtiger_backups.log" with output from the script

The backup script checks for both the Apache and MySQL daemons, shutting them down if they are running. Then it creates the zip backup file, after which it restarts the MySQL and Apache daemons. However, it is intelligent enough NOT to restart the daemons if they weren't running in the first place -- that way, if you shut down either or both of the daemons for maintenance, they won't get accidentally restarted by this backup script. Currently, the backup script takes about 15-16 seconds to run, and creates a backup file of about 3.7 MB in size.