Backing up LIS or STS to a Remote Backup Server¶
Step 1: Download the Script¶
cd ~
wget -O remote-backup.sh https://raw.githubusercontent.com/deforay/vlsm/master/scripts/remote-backup.sh
Step 2: Make the Script Executable¶
sudo chmod u+x remote-backup.sh
Step 3: Run the Script¶
sudo ./remote-backup.sh
What the Script Does¶
-
Instance Name Configuration — You'll specify a unique identifier for your facility (such as
lab1orcenterA), which the script processes for system compatibility. -
Tool Installation — The script verifies and installs
rsyncif needed. -
SSH Key Generation — An SSH keypair is created to establish secure, encrypted communication channels with your backup destination.
-
Backup Server Configuration — You'll provide the username and network address (IP or hostname) of your backup server.
-
Connection Testing — The script validates connectivity and requests corrected credentials if the initial connection attempt fails.
-
Key Transfer — Your SSH public key is automatically deployed to the backup server.
-
Backup Script Creation — A dedicated script is generated to synchronize
/var/www/vlsmwith your backup location. -
Scheduling — Cron jobs are configured to execute backups every 6 hours and upon system restart.