commented out --copyoffsite code and in readme

This commit is contained in:
2022-12-03 20:59:08 -05:00
parent 80e3207b97
commit c7ae7e7596
2 changed files with 9 additions and 7 deletions

View File

@@ -17,6 +17,7 @@ duplicacy set -key ssh_password -value <ssh password>
### Testing Filters ### Testing Filters
Filters can be easily tested using the backup command: ```duplicacy -d -log backup -enum-only```. This is further explained in [Backup command details](https://forum.duplicacy.com/t/backup-command-details/1077). Filters can be easily tested using the backup command: ```duplicacy -d -log backup -enum-only```. This is further explained in [Backup command details](https://forum.duplicacy.com/t/backup-command-details/1077).
<!--
### Duplicacy copy setup ### Duplicacy copy setup
Only the bitwarden data is backed up as that is the most important data. No encryption is needed as all the data is already encrypted. Only the bitwarden data is backed up as that is the most important data. No encryption is needed as all the data is already encrypted.
``` ```
@@ -26,6 +27,7 @@ duplicacy copy -to <BACKUP_HOST> -id <BACKUP_ID>
``` ```
#### then to actually copy the files off #### then to actually copy the files off
the script takes `-c|--copyOffsite` agrument and then will copy the files to the offsite backup the script takes `-c|--copyOffsite` agrument and then will copy the files to the offsite backup
-->
### Filter file contents ### Filter file contents

View File

@@ -74,13 +74,13 @@ duplicacy -verbose -log backup -stats >> ${LOGFILE} 2>&1
duplicacy -verbose -log prune -keep 0:360 -keep 30:180 -keep 7:30 -keep 1:7 >> ${LOGFILE} 2>&1 duplicacy -verbose -log prune -keep 0:360 -keep 30:180 -keep 7:30 -keep 1:7 >> ${LOGFILE} 2>&1
# copy the backup to offsite but only if the backup id as passed in # copy the backup to offsite but only if the backup id as passed in
if [ "${1}" == "--copyOffsite" ] || [ "${1}" == "-c" ]; then #if [ "${1}" == "--copyOffsite" ] || [ "${1}" == "-c" ]; then
BACKUP_ID=$(awk '/"id"/{print substr($2,2,length($2)-3);exit}' /.duplicacy/preferences) #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 GauntBackupCRO -id ${BACKUP_ID} >> ${LOGFILE} 2>&1
duplicacy -verbose -log copy -to GauntBackupGail -id ${BACKUP_ID} >> ${LOGFILE} 2>&1 #duplicacy -verbose -log copy -to GauntBackupGail -id ${BACKUP_ID} >> ${LOGFILE} 2>&1
duplicacy -verbose -log copy -to GauntBackupNAS -id ${BACKUP_ID} >> ${LOGFILE} 2>&1 #duplicacy -verbose -log copy -to GauntBackupNAS -id ${BACKUP_ID} >> ${LOGFILE} 2>&1
duplicacy -verbose -log copy -to GauntBackupGCE01 -id ${BACKUP_ID} >> ${LOGFILE} 2>&1 #duplicacy -verbose -log copy -to GauntBackupGCE01 -id ${BACKUP_ID} >> ${LOGFILE} 2>&1
fi #fi
# compress the logs # compress the logs
gzip $(dirname ${LOGFILE})/*.log gzip $(dirname ${LOGFILE})/*.log