From 80ef9b10064153c7c5ade233a73f6077d3bf3fe2 Mon Sep 17 00:00:00 2001 From: Steven Uggowitzer Date: Mon, 21 Feb 2022 10:02:05 +0000 Subject: [PATCH] Update 'root/scripts/aos-npbackup-sync.sh' --- root/scripts/aos-npbackup-sync.sh | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/root/scripts/aos-npbackup-sync.sh b/root/scripts/aos-npbackup-sync.sh index a77fca2..9e7e105 100755 --- a/root/scripts/aos-npbackup-sync.sh +++ b/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 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`