diff --git a/backup.sh b/backup.sh index 44988ff..3e66fba 100755 --- a/backup.sh +++ b/backup.sh @@ -92,7 +92,7 @@ function backup { volumes=$1 # Remove old backup directory - if [ ! -d ${BACKUP_DIR} ]; then + if [ -d ${BACKUP_DIR} ]; then rm -f ${BACKUP_DIR}/*.tar rmdir ${BACKUP_DIR} fi