mongodb_backup: typo
This commit is contained in:
@@ -9,7 +9,7 @@ error=0
|
|||||||
mkdir -p $dir
|
mkdir -p $dir
|
||||||
cd $dir
|
cd $dir
|
||||||
|
|
||||||
mongodb --oplog --out mongodump 2> /dev/null
|
mongodump --oplog --out mongodump 2> /dev/null
|
||||||
error=$?
|
error=$?
|
||||||
if [ $error -eq 0 ] ; then
|
if [ $error -eq 0 ] ; then
|
||||||
find $rdir -maxdepth 1 -type d -mtime +${rotate} -exec rm -fr {} \;
|
find $rdir -maxdepth 1 -type d -mtime +${rotate} -exec rm -fr {} \;
|
||||||
Reference in New Issue
Block a user