#!/bin/bash
for folder in `find . -type d | grep -v 'chat\|trash\|temp\|pad\|git\|common' | grep 'wombat\|nuage\|partage\|mairie'`;
do
  cd $folder;
  export NS=`pwd | rev | cut -d'/' -f 2 | rev`
  kubectl -n $NS delete job dump
  libre apply ../../common/nextcloud/other-manifests/dump.yml;
  cd ../..;
done
kubectl get po -A | grep -v '\-dump' | grep dump
