Files
scripts/backup_scripts/postgres/post_backup.sh

8 lines
104 B
Bash

#!/bin/bash
DIRBACKUP="/data/backups"
if [ -d "${DIRBACKUP}" ]; then
rm -rf "${DIRBACKUP:?}/"*
fi