mongodb_backup: typo
This commit is contained in:
@@ -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 {} \;
|
||||
Reference in New Issue
Block a user