commented out --copyoffsite code and in readme
This commit is contained in:
@@ -17,6 +17,7 @@ duplicacy set -key ssh_password -value <ssh password>
|
||||
### 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).
|
||||
|
||||
<!--
|
||||
### 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.
|
||||
```
|
||||
@@ -26,6 +27,7 @@ duplicacy copy -to <BACKUP_HOST> -id <BACKUP_ID>
|
||||
```
|
||||
#### then to actually copy the files off
|
||||
the script takes `-c|--copyOffsite` agrument and then will copy the files to the offsite backup
|
||||
-->
|
||||
|
||||
|
||||
### Filter file contents
|
||||
|
||||
14
duplicacy.sh
14
duplicacy.sh
@@ -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
|
||||
|
||||
# copy the backup to offsite but only if the backup id as passed in
|
||||
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
|
||||
duplicacy -verbose -log copy -to GauntBackupNAS -id ${BACKUP_ID} >> ${LOGFILE} 2>&1
|
||||
duplicacy -verbose -log copy -to GauntBackupGCE01 -id ${BACKUP_ID} >> ${LOGFILE} 2>&1
|
||||
fi
|
||||
#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
|
||||
#duplicacy -verbose -log copy -to GauntBackupNAS -id ${BACKUP_ID} >> ${LOGFILE} 2>&1
|
||||
#duplicacy -verbose -log copy -to GauntBackupGCE01 -id ${BACKUP_ID} >> ${LOGFILE} 2>&1
|
||||
#fi
|
||||
|
||||
# compress the logs
|
||||
gzip $(dirname ${LOGFILE})/*.log
|
||||
|
||||
Reference in New Issue
Block a user