Shouldn't this be $BACKUP_DIR?  Have you tested this?