Automated Backups for Beacon Endpoint Profiler

By admin November 26th, 2009

The Great Bay Beacon Endpoint Profiler 2.1.8 has a number of options for backups.  Backups are automatically run daily and manual backups can be run from the command line from the web based GUI.  The files can be manually downloaded, but the backup files are not be automatically moved to a remote location.  Below is a simple shell script that automatically backups the Profilier database and the cron job that schedules the shell script to run daily.  The cron job entry is in bold.

$ cat bugs3.sh
time=`date +%Y%m%d_%H%M_%S`
pg_dump | gzip > /home/beacon/backups/beaconbackup-$time.gz

ftp -n -i -v <<EOD
open XXX.XXX.XXX.XXX
user username password
put /home/beacon/backups/beaconbackup-$time.gz /usr/local/backup/Beacon/beaconbackup-$time.gz
EOD

$ cat bugs3.sh
time=`date +%Y%m%d_%H%M_%S`
pg_dump | gzip > /home/beacon/backups/beaconbackup-$time.gz

ftp -n -i -v <<EOD
open 128.249.XXX.XXX
user appliance password
put /home/beacon/backups/beaconbackup-$time.gz /usr/local/backup/Beacon/beaconbackup-$time.gz
EOD

[beacon@Beacon ~]$ crontab -e
*iMAILTO=”"
# Check once a minute for stopped/dead components
*/1 * * * *     cd /usr/beacon; /usr/beacon/beacon resurrect
# Perform working file clean up every hour
0 */1 * * * find /usr/beacon/pending -maxdepth 1 -type f -mmin +120 -delete;
0 */1 * * * find /usr/beacon/pending -name *.xml -mmin +120 -delete;
0 */1 * * * find /usr/beacon/working -name *.xml -mmin +120 -delete;
0 */1 * * * find /usr/beacon/working/cca -name *.dump -mmin +120 -delete;

# Perform ongoing maintain every two hours
0 */6 * * *                    /usr/beacon/sql/vacuum-switch.sh va-all
15,45 * * * *                  /usr/beacon/sql/vacuum-switch.sh 15min
1,30 * * * *                   /usr/beacon/sql/vacuum-switch.sh 30min
30 */2 * * *                   /usr/beacon/sql/vacuum-switch.sh history

# Perform daily DB backups
0 3 * * *       /usr/beacon/sql/db_backup.sh
0 4 * * *       /home/beacon/bugs3.sh
# For HA maintenance.  No-op if not in HA mode
*/1 * * * *    /usr/beacon/sql/chk_status_master.sh

# For HA maintenance.  No-op if not in HA mode
*/3 * * * *    /usr/beacon/sql/check_slon.sh
1,31 * * * *   /usr/beacon/sql/check_confirm.sh

This entry was posted on Thursday, November 26th, 2009 at 12:42 pm and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

3 Responses to “Automated Backups for Beacon Endpoint Profiler”

  1. Alexander7 Says:

    buy@generic.LEVITRA” rel=”nofollow”>…

    Need cheap generic LEVITRA?…

  2. nicole stevens Says:

    bob hairstyles

    hey there and thank you for your info – I have certainly picked up anything new from right here. I did however expertise several technical points using this site, as I experienced to reload the web site lots of times previous to I could get it to load …

  3. virginia torres Says:

    bob haircuts

    Simply desire to say your article is as astonishing. The clarity in your post is simply great and i can assume you’re an expert on this subject. Fine with your permission allow me to grab your feed to keep updated with forthcoming post. Thanks a milli…

Leave a Reply