#!/bin/bash

if [ -d /srv6_tmp5/fettweis/MARforecast/data ] ; then

cd /ftp/fettweis/tmp/valerian

touch *.bash

find *.nc -type f -mtime +20 -exec rm -fv  {} \;

cd /srv6_tmp5/fettweis/MARforecast/data

find . -type f -mtime -20 -print0 | rsync -auP --delete-after --files-from=- --from0 ./ /ftp/fettweis/tmp/valerian

fi
