Update 'root/scripts/aos-npbackup-sync.sh'
This commit is contained in:
@@ -1,17 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# aos-npbackup-sync.sh
|
#title : aos-npbackup-sync.sh
|
||||||
# Backup AoS.Health instance ProxMox Dump Files to remote Host
|
#description : Backup (rsync) AoS.Health instance ProxMox Dump Files to remote Host
|
||||||
#
|
#author : Steven Uggowitzer <steven@entuura.org> for eSHIFT.org
|
||||||
#
|
#date : 20220221
|
||||||
# sync backups to remote server
|
#version : 0.1
|
||||||
STARTTIME="`date '+%d.%m.%y %H:%M'`"
|
#usage : bash aos-npbackup-sync.sh Script should likely be run from cron job
|
||||||
START=`date +%s`
|
#notes : As it is, this script relies on host np-backup.nitc to be defined in
|
||||||
|
# the /etc/hosts file of the server running this script.
|
||||||
LOGFILE=/var/log/aos-npbackup-sync.log
|
#==============================================================================
|
||||||
touch $LOGFILE
|
|
||||||
|
|
||||||
# We copied an rsync binary to the remote site as it was not installed by default by NITC.
|
|
||||||
EXTRAARGS='--rsync-path=~/bin/rsync'
|
|
||||||
|
|
||||||
# See /etc/hosts file for actual IP address being used.
|
# See /etc/hosts file for actual IP address being used.
|
||||||
REMOTEUSER=nphl-antimicrobial-resvm
|
REMOTEUSER=nphl-antimicrobial-resvm
|
||||||
@@ -22,6 +18,17 @@ REMOTEHOST=np-backup.nitc
|
|||||||
SRCDIR=/aos-backups
|
SRCDIR=/aos-backups
|
||||||
DESTDIR=/home/nphl-antimicrobial-resvm
|
DESTDIR=/home/nphl-antimicrobial-resvm
|
||||||
|
|
||||||
|
|
||||||
|
STARTTIME="`date '+%d.%m.%y %H:%M'`"
|
||||||
|
START=`date +%s`
|
||||||
|
|
||||||
|
LOGFILE=/var/log/aos-npbackup-sync.log
|
||||||
|
touch $LOGFILE
|
||||||
|
|
||||||
|
# We copied an rsync binary to the remote site as it was not installed by default by NITC.
|
||||||
|
EXTRAARGS='--rsync-path=~/bin/rsync'
|
||||||
|
|
||||||
|
|
||||||
## ---------
|
## ---------
|
||||||
STARTTIME="`date '+%d.%m.%y %H:%M'`"
|
STARTTIME="`date '+%d.%m.%y %H:%M'`"
|
||||||
START=`date +%s`
|
START=`date +%s`
|
||||||
|
|||||||
Reference in New Issue
Block a user