Update 'duplicacy.sh'
This commit is contained in:
@@ -24,7 +24,7 @@ for folder in ${FOLDERS_TO_BACKUP[@]}; do
|
||||
else
|
||||
# sftp password DUPLICACY_SSH_PASSWORD DUPLICACY_<STORAGENAME>_SSH_PASSWORD ssh_password
|
||||
echo "Please enter duplicacy ssh password"
|
||||
read -S SSH_PASSWORD
|
||||
read -s SSH_PASSWORD
|
||||
export DUPLICACY_SSH_PASSWORD=${SSH_PASSWORD}
|
||||
duplicacy init ${id} sftp://duplicacy@gauntnas.home.johnhgaunt.com//mnt/data-pool/duplicacy/data
|
||||
duplicacy set -key ssh_password -value "${SSH_PASSWORD}"
|
||||
@@ -33,7 +33,7 @@ for folder in ${FOLDERS_TO_BACKUP[@]}; do
|
||||
done
|
||||
|
||||
# compress the logs
|
||||
pigz $(dirname ${LOGFILE})/*.log
|
||||
gzip $(dirname ${LOGFILE})/*.log
|
||||
|
||||
# clean up lockfile
|
||||
rm -f ${lockfile}
|
||||
Reference in New Issue
Block a user