Check if folder exist on bash command if [ ! -e “$BACKUPDIR/latest” ] # Check Latest Directory exists. then mkdir -p “$BACKUPDIR/latest” fi