Last active
August 29, 2015 14:02
-
-
Save juliangruber/18dcfa8a86eed5bd00cc to your computer and use it in GitHub Desktop.
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
var connect = require('multilevel-connect'); | |
var db = connect('password@host:port'); | |
db.createReadStream() | |
.on('data', function(kv){ | |
console.log(JSON.stringify(kv)); | |
}) | |
.on('end', function(){ | |
process.exit(0) | |
}); |
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
#!/usr/bin/env bash | |
node backup.js > site-name.bak | |
git add . | |
git commit -m `date "+%Y-%m-%d-%H:%M:%S"` | |
git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment