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
public static void main(String[] args) throws DatabaseException, | |
UnsupportedEncodingException { | |
DatabaseEntry key = new DatabaseEntry(); | |
DatabaseEntry data = new DatabaseEntry(); | |
EnvironmentConfig config = new EnvironmentConfig(); | |
config.setAllowCreate(true); | |
config.setTransactional(true); | |
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
mongodump -h [server]:[port] -u [user] -p [password] -d [db] | |
export d=$(date +'%Y-%m-%d') | |
tar -czf $d.tgz dump | |
rm dump |
NewerOlder