* Add backup timeout customization

* Different variable

Co-authored-by: Michael Stanclift <vmstan@ms-constitution.local>
This commit is contained in:
Michael Stanclift 2021-04-05 17:16:29 -05:00 committed by GitHub
parent d97f92ccea
commit 71fdb016bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 3 deletions

View File

@ -1 +1 @@
3.4.0
3.4.1

View File

@ -3,7 +3,7 @@ SCRIPT_START=$SECONDS
# GRAVITY SYNC BY VMSTAN #####################
PROGRAM='Gravity Sync'
VERSION='3.4.0'
VERSION='3.4.1'
# For documentation or downloading updates visit https://github.com/vmstan/gravity-sync
@ -53,6 +53,7 @@ ROOT_CHECK_AVOID='0' # replace in gravity-sync.conf to overwrite
# Backup Customization
BACKUP_RETAIN='3' # replace in gravity-sync.conf to overwrite
BACKUP_TIMEOUT='60' # replace in gravity-sync.conf to overwrite
# SSH Customization
SSH_PORT='22' # default SSH port

View File

@ -70,7 +70,7 @@ function backup_remote_gravity() {
MESSAGE="${UI_BACKUP_PRIMARY} ${UI_GRAVITY_NAME}"
echo_stat
CMD_TIMEOUT='60'
CMD_TIMEOUT=$BACKUP_TIMEOUT
CMD_REQUESTED="sudo sqlite3 ${RIHOLE_DIR}/${GRAVITY_FI} \".backup '${RIHOLE_DIR}/${GRAVITY_FI}.backup'\""
create_sshcmd
}

View File

@ -44,6 +44,7 @@ REMOTE_USER='pi'
### Backup Customization
# BACKUP_RETAIN='' # replace in gravity-sync.conf to overwrite
# BACKUP_TIMEOUT='' # replace in gravity-sync.conf to overwrite
### SSH Customization
# SSH_PORT='' # default SSH port