JFS_BASE=/Users/yujunz/JuiceFS
JFS_NAME=rogerz-s3-cn-east-1-qiniu
BUNDLE=TimeMachine.sparsebundle
VOLUME=/Volumes/TimeMachine
# Mount JuiceFS
juicefs mount --cache-dir $JUICEFS_BASE/cache --batch 10 --writeback --metacache --opencache $JFS_NAME $JFS_BASE/$JFS_NAME
# Create sparse bundle
This file contains 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
/* | |
How to export | |
* mongo is mongoshell command | |
mongo dbname --quiet mongodbIndexExporter.js > index.js | |
*/ | |
let collectionNames = db.getCollectionNames(); | |
let index_data = {'collections': []}; | |
for (let i in collectionNames) { |
This file contains 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 More Info http://clivern.com/how-to-install-apache-tomcat-8-on-ubuntu-16-04 | |
sudo apt-get update | |
sudo apt-get install default-jdk | |
sudo apt-get install unzip | |
cd /opt | |
curl -O http://apache.mirrors.ionfish.org/tomcat/tomcat-8/v8.5.15/bin/apache-tomcat-8.5.15.zip | |
sudo unzip apache-tomcat-8.5.15.zip | |
sudo mv apache-tomcat-8.5.15 tomcat |
This file contains 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 More Info http://clivern.com/how-to-install-apache-tomcat-8-on-ubuntu-16-04 | |
sudo apt-get update | |
sudo apt-get install default-jdk | |
sudo apt-get install unzip | |
cd /opt | |
curl -O http://apache.mirrors.ionfish.org/tomcat/tomcat-8/v8.5.15/bin/apache-tomcat-8.5.15.zip | |
sudo unzip apache-tomcat-8.5.15.zip | |
sudo mv apache-tomcat-8.5.15 tomcat |