diff --git a/VERSION b/VERSION index fbcbf73..8cf6caf 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.4.0 \ No newline at end of file +3.4.1 \ No newline at end of file diff --git a/gravity-sync.sh b/gravity-sync.sh index 957b46d..b4d5d38 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -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 diff --git a/includes/gs-backup.sh b/includes/gs-backup.sh index 0bfc01e..6b970f3 100644 --- a/includes/gs-backup.sh +++ b/includes/gs-backup.sh @@ -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 } diff --git a/templates/gravity-sync.conf.example b/templates/gravity-sync.conf.example index 062fea2..1f44fdf 100644 --- a/templates/gravity-sync.conf.example +++ b/templates/gravity-sync.conf.example @@ -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