G2/G3 Gateway Backup Script
Installation instructions - for ICOM G2 and G3 gateways
- su {enter root password}
- Copy and paste the following commands:
cd /tmp
wget https://dsync.dstarusers.org/gw_backup_installer
/bin/bash ./gw_backup_installer
Example Installation:
[root@k6vo tmp]# bash gw_backup_installer
D-STAR Backup Script (gw_backup) Installer
Backing up current gw_backup script ...[Done]
Fetching backup script from https://dsync.dstarusers.org / gw_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: [email protected]
Re-enter the email address to backup data to: [email protected]
Enabling UNSUPPORTED Code Ready Builder (CRB) repository to install sharutils...
Installing package 'sharutils' ...
AlmaLinux 9 - CRB 10 kB/s | 4.2 kB 00:00
Package sharutils-4.15.2-21.el9.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
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/gw_backup
A copy of the backup will also be sent to: [email protected]
Backup script has been installed.
- The script will automatically run at 4:35 AM each Sunday.
- To run the script manually, log in or become "root" user and type: /dstar/scripts/gw_backup
- The installer creates the cron-tab entry "35 4 * * * root /bin/bash /dstar/scripts/gw_backup" in /etc/cron.d/dstar-backup
- The script may be configured to back up to an alternate location such as a USB disk or flash drive
- Update the value of BACK_TAR= and replace /tmp/backup.tar.gz with your alternate location, for example, "/media/BACKUP/gw-backup.tar.gz
Brian Roode, NJ6N