update the restic copy offsite section
This commit is contained in:
@@ -94,10 +94,11 @@ restic --cleanup-cache --verbose backup ${BACKUP_DIRS} >> ${LOGFILE} 2>&1
|
|||||||
|
|
||||||
# copy the backup to offsite if requested
|
# copy the backup to offsite if requested
|
||||||
if [ "${2}" == "--copyOffsite" ] || [ "${2}" == "-c" ]; then
|
if [ "${2}" == "--copyOffsite" ] || [ "${2}" == "-c" ]; then
|
||||||
BACKUP_ID=$(awk '/"id"/{print substr($2,2,length($2)-3);exit}' /.duplicacy/preferences)
|
#$ restic -r /srv/restic-repo copy --repo2 /srv/restic-repo-copy --host luigi
|
||||||
duplicacy -verbose -log copy -to GauntBackupCRO -id ${BACKUP_ID} >> ${LOGFILE} 2>&1
|
restic --verbose copy --repo2 sftp://root@gauntbackupCRO.home.johnhgaunt.com://backup/restic --host ${1} --copy-chunker-params >> ${LOGFILE} 2>&1
|
||||||
duplicacy -verbose -log copy -to GauntBackupGail -id ${BACKUP_ID} >> ${LOGFILE} 2>&1
|
restic --verbose copy --repo2 sftp://root@gauntbackupGail.home.johnhgaunt.com://backup/restic --host ${1} --copy-chunker-params >> ${LOGFILE} 2>&1
|
||||||
duplicacy -verbose -log copy -to GauntBackupNAS -id ${BACKUP_ID} >> ${LOGFILE} 2>&1
|
restic --verbose copy --repo2 sftp://root@gauntbackupNAS.home.johnhgaunt.com://backup/restic --host ${1} --copy-chunker-params >> ${LOGFILE} 2>&1
|
||||||
|
restic --verbose copy --repo2 sftp://root@GauntBackupGCE01.home.johnhgaunt.com://backup/restic --host ${1} --copy-chunker-params >> ${LOGFILE} 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# compress the logs
|
# compress the logs
|
||||||
|
|||||||
Reference in New Issue
Block a user