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
{ content: | |
{ sid: '516f1018384ca80000000011', | |
title: 'node.js news', | |
slug: 'node-js-news', | |
status: 'working', | |
version: 1, | |
permalink: 'http://storify.com/storify/node-js-news', | |
description: null, | |
thumbnail: 'http://storify.com/public/img/default-thumb.gif', | |
date: |
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
var async = require('async'); | |
var ProgressBar = require('progress'); | |
var monk = require('monk'); | |
var ObjectId=require('mongodb').ObjectID; | |
var dest = monk('localhost:27017/storify_localhost'); | |
var backup = monk('localhost:27017/storify_backup'); | |
var userId = ObjectId(YOUR-OBJECT-ID); // monk should have auto casting but we need it for queries |
NewerOlder