Minor updates
This commit is contained in:
parent
9f1a7312d5
commit
a501adfc65
@ -63,7 +63,7 @@ src_mysqldump() {
|
|||||||
log "Run command: $*"
|
log "Run command: $*"
|
||||||
|
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
if "$@" 2>> "$__log_file" > "$sqldump"; then
|
if "$@" 2>> "$log_file" > "$sqldump"; then
|
||||||
# Compress file
|
# Compress file
|
||||||
sqldump="$(compress_file "$sqldump")"
|
sqldump="$(compress_file "$sqldump")"
|
||||||
# Append path to 'backups' array
|
# Append path to 'backups' array
|
||||||
|
@ -64,7 +64,7 @@ src_pg_dump() {
|
|||||||
log "Run command: $*"
|
log "Run command: $*"
|
||||||
|
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
if "$@" 2>> "$__log_file" > "$sqldump"; then
|
if "$@" 2>> "$log_file" > "$sqldump"; then
|
||||||
# Compress dump
|
# Compress dump
|
||||||
sqldump="$(compress_file "$sqldump")"
|
sqldump="$(compress_file "$sqldump")"
|
||||||
# Append path to 'backups' array
|
# Append path to 'backups' array
|
||||||
|
@ -86,7 +86,7 @@ src_tar() {
|
|||||||
log "Run command: $*"
|
log "Run command: $*"
|
||||||
|
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
if "$@" 2>> "$__log_file"; then
|
if "$@" 2>> "$log_file"; then
|
||||||
# Append path to 'backups' array
|
# Append path to 'backups' array
|
||||||
backups+=("$archive")
|
backups+=("$archive")
|
||||||
else
|
else
|
||||||
|
@ -60,7 +60,7 @@ tgt_cp() {
|
|||||||
|
|
||||||
log "Run command: $*"
|
log "Run command: $*"
|
||||||
|
|
||||||
if "$@" 2>> "$__log_file"; then
|
if "$@" 2>> "$log_file"; then
|
||||||
: # Success
|
: # Success
|
||||||
else
|
else
|
||||||
handle_error \
|
handle_error \
|
||||||
|
@ -29,6 +29,4 @@ LIBRARY="${LIBRARY:-./lib}"
|
|||||||
. "$LIBRARY/handlers/targets/cp.sh"
|
. "$LIBRARY/handlers/targets/cp.sh"
|
||||||
. "$LIBRARY/handlers/targets/s3cmd.sh"
|
. "$LIBRARY/handlers/targets/s3cmd.sh"
|
||||||
|
|
||||||
if [ -f "$LIBRARY/extra.sh" ]; then
|
[ -f "$LIBRARY/extra.sh" ] && . "$LIBRARY/extra.sh"
|
||||||
. "$LIBRARY/extra.sh"
|
|
||||||
fi
|
|
||||||
|
Loading…
Reference in New Issue
Block a user