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))`
|
||||
|
||||
# Validate backup dir
|
||||
if [ -d "${BACKUP_DIR}" -a -w "${BACKUP_DIR}" -a -x "${BACKUP_DIR}" ]; then
|
||||
echo "Backups will be stored at ${BACKUP_DIR}."
|
||||
else
|
||||
if [ '!' -d "${BACKUP_DIR}" -o '!' -w "${BACKUP_DIR}" -o '!' -x "${BACKUP_DIR}" ]; then
|
||||
echo "BACKUP_DIR points to a file or folder with insufficient permissions."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user