cd /tmp wget dstar.info/dist/g2_backup_installer /bin/bash ./g2_backup_installerExample Installation:
[nj6n@k6vo ~]$ su Password: [root@k6vo nj6n]# cd /tmp [root@k6vo tmp]# wget -q dstar.info/dist/g2_backup_installer [root@k6vo tmp]# /bin/bash ./g2_backup_installer D-STAR Backup Script (g2_backup) Installer Backing up current g2_backup script ...[Done] Fetching backup script from dstar.info/dist / g2_backup ... [Done] Would you like to have a copy of your backup emailed to you? (Y/n): Y Enter the email address to backup data to: you@youraddress.com Re-enter the email address to backup data to: you@youraddress.com Installing cron.d entry: /etc/cron.d/dstar-backup ... [Done] **** Important NOTE **** Backup archive file will be created in /tmp at 04:35 every Sunday. To create a backup manually: /dstar/scripts/g2_backup A copy of the backup will also be sent to: you@youraddress.com Backup script has been installed.
These procedures are designed to enable a gateway administrator to recover from a catastrophic failure of their gateway system. While it is possible to create a replica of your current system using these procedures, it is imperative that you DO NOT run two instances of your gateway at the same time on the production network.
[root@k6vo ICOM]# ./dstar_db-backup ALL write ALL 091126_102539 /home/postgres TRUNCATE TABLE VACUUM COPY 588 TRUNCATE TABLE VACUUM COPY 16331 TRUNCATE TABLE VACUUM COPY 13540 TRUNCATE TABLE VACUUM COPY 596 TRUNCATE TABLE VACUUM COPY 16519 TRUNCATE TABLE VACUUM COPY 4 TRUNCATE TABLE VACUUM COPY 4 *** finished ***