mirror of
https://github.com/prodrigestivill/docker-postgres-backup-local.git
synced 2026-05-31 08:37:58 +00:00
Clean initial stdout
This commit is contained in:
@@ -60,9 +60,7 @@ KEEP_WEEKS=`expr $(((${BACKUP_KEEP_WEEKS} * 7) + 1))`
|
|||||||
KEEP_MONTHS=`expr $(((${BACKUP_KEEP_MONTHS} * 31) + 1))`
|
KEEP_MONTHS=`expr $(((${BACKUP_KEEP_MONTHS} * 31) + 1))`
|
||||||
|
|
||||||
# Validate backup dir
|
# Validate backup dir
|
||||||
if [ -d "${BACKUP_DIR}" -a -w "${BACKUP_DIR}" -a -x "${BACKUP_DIR}" ]; then
|
if [ '!' -d "${BACKUP_DIR}" -o '!' -w "${BACKUP_DIR}" -o '!' -x "${BACKUP_DIR}" ]; then
|
||||||
echo "Backups will be stored at ${BACKUP_DIR}."
|
|
||||||
else
|
|
||||||
echo "BACKUP_DIR points to a file or folder with insufficient permissions."
|
echo "BACKUP_DIR points to a file or folder with insufficient permissions."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -10,5 +10,4 @@ if [ "${BACKUP_ON_START}" = "TRUE" ]; then
|
|||||||
EXTRA_ARGS="-i"
|
EXTRA_ARGS="-i"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Starting go-cron ($SCHEDULE)..."
|
|
||||||
exec /usr/local/bin/go-cron -s "$SCHEDULE" -p "$HEALTHCHECK_PORT" $EXTRA_ARGS -- /backup.sh
|
exec /usr/local/bin/go-cron -s "$SCHEDULE" -p "$HEALTHCHECK_PORT" $EXTRA_ARGS -- /backup.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user