Browse Source

Update 'root/scripts/aos-npbackup-sync.sh'

master
Steven Uggowitzer 4 years ago
parent
commit
80ef9b1006
  1. 33
      root/scripts/aos-npbackup-sync.sh

33
root/scripts/aos-npbackup-sync.sh

@ -1,17 +1,13 @@
#!/bin/bash
# aos-npbackup-sync.sh
# Backup AoS.Health instance ProxMox Dump Files to remote Host
#
#
# sync backups to remote server
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'
#title : aos-npbackup-sync.sh
#description : Backup (rsync) AoS.Health instance ProxMox Dump Files to remote Host
#author : Steven Uggowitzer <steven@entuura.org> for eSHIFT.org
#date : 20220221
#version : 0.1
#usage : bash aos-npbackup-sync.sh Script should likely be run from cron job
#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.
#==============================================================================
# See /etc/hosts file for actual IP address being used.
REMOTEUSER=nphl-antimicrobial-resvm
@ -22,6 +18,17 @@ REMOTEHOST=np-backup.nitc
SRCDIR=/aos-backups
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'`"
START=`date +%s`

Loading…
Cancel
Save