Update 'duplicacy.sh'

This commit is contained in:
2021-02-12 13:58:31 -05:00
parent c44fc647b9
commit 918605ab76

View File

@@ -77,6 +77,7 @@ duplicacy -verbose -log prune -keep 0:360 -keep 30:180 -keep 7:30 -keep 1:7 >> $
if [ "${1}" == "--copyOffsite" ] || [ "${1}" == "-c" ]; then
BACKUP_ID=$(awk '/"id"/{print substr($2,2,length($2)-3);exit}' /.duplicacy/preferences)
duplicacy -verbose -log copy -to GauntBackupCRO -id ${BACKUP_ID} >> ${LOGFILE} 2>&1
duplicacy -verbose -log copy -to GauntBackupGail -id ${BACKUP_ID} >> ${LOGFILE} 2>&1
fi
# compress the logs