mongodb_backup: typo

This commit is contained in:
2020-05-03 19:13:39 +02:00
parent 9befc0c034
commit 34ec5fce36

View File

@@ -9,7 +9,7 @@ error=0
mkdir -p $dir
cd $dir
mongodb --oplog --out mongodump 2> /dev/null
mongodump --oplog --out mongodump 2> /dev/null
error=$?
if [ $error -eq 0 ] ; then
find $rdir -maxdepth 1 -type d -mtime +${rotate} -exec rm -fr {} \;