linux定时器自动备份Mongodb

来源:互联网 发布:windows 定时重启任务 编辑:程序博客网 时间:2024/06/06 00:25
sourcePath='/var/mash5/mongodb-linux-x86_64-1.8.1/bin'targetPath='/var/mash5/mongodb-linux-x86_64-1.8.1/bak'rm -rf $sourcePath/dump$sourcePath/mongodump --port 27017 -d mash5_t2 -o $sourcePath/dumpcp -r $sourcePath/dump $targetPath/dump+`date   +%Y%m%d%H%M%S`


转载于:http://blog.csdn.net/lu467344991/article/details/7646011

0 0
原创粉丝点击