Last active
July 25, 2016 06:42
-
-
Save Ryan4CN/7ab63bd13ebb14b3e5d1100e9e4f475c to your computer and use it in GitHub Desktop.
进入逐个目录进行包压缩脚本 和 批量导入 couchbase 脚本
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for file in * | |
do | |
if test -f $file | |
then | |
/opt/couchbase/bin/cbdocloader -u admin -p 123456 -n 127.0.0.1:8091 -b G | |
center -s 1000 $file | |
rm -rf $file | |
fi | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for file in * | |
do | |
if test -d $file | |
then | |
cd $file | |
zip -r ../${file}.zip . | |
cd .. | |
rm -rf $file | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment