database-dump

How do I create a MongoDB dump of my database?

非 Y 不嫁゛ 提交于 2019-12-04 07:41:03
问题 What command do I use and run? 回答1: Use mongodump : $ ./mongodump --host prod.example.com connected to: prod.example.com all dbs DATABASE: log to dump/log log.errors to dump/log/errors.bson 713 objects log.analytics to dump/log/analytics.bson 234810 objects DATABASE: blog to dump/blog blog.posts to dump/log/blog.posts.bson 59 objects DATABASE: admin to dump/admin Source: http://www.mongodb.org/display/DOCS/Import+Export+Tools 回答2: To dump your database for backup you call this command on your

Mongodump from remote server

我怕爱的太早我们不能终老 提交于 2019-11-29 20:48:28
We recently ported some data over to MongoDB and are now looking into running daily backups, preferably from a cron job, and restore one of the backups to a secondary mongo database. Our system is set up as follows: server 1: the development mongo database server 2: two mongo databases, one for staging data and one for production server 3: is where we run all of our cron jobs/batch scripts from. I checked the mongo docs, and logged into our cron job server and tried to run the following command: (username, host, and password changed for security, I'm not actually connecting to localhost)

Mongodump from remote server

孤街浪徒 提交于 2019-11-28 16:26:13
问题 We recently ported some data over to MongoDB and are now looking into running daily backups, preferably from a cron job, and restore one of the backups to a secondary mongo database. Our system is set up as follows: server 1: the development mongo database server 2: two mongo databases, one for staging data and one for production server 3: is where we run all of our cron jobs/batch scripts from. I checked the mongo docs, and logged into our cron job server and tried to run the following

How to restore PostgreSQL dump file into Postgres databases?

混江龙づ霸主 提交于 2019-11-27 17:58:23
I have a dump file with a .SQL extension (in fact it is a plain-text SQL file). I want to restore it into my created databases. I am using pgAdmin III , and when I use its "Restore Wizard" it does not highlight the button "Restore". Instead it is expecting a .backup file extension. I tried using shell the commands for restoring the dump, but it still didn't work. I am a newbie at this. If anybody could help me I would be obliged. Edit I used following command to the Shell SQL Pane of PostGres while sitting at the newTestDB. newTestDB-# \i E:\db-rbl-restore-20120511_Dump-20120514.sql It still

How to restore PostgreSQL dump file into Postgres databases?

给你一囗甜甜゛ 提交于 2019-11-26 22:36:16
问题 I have a dump file with a .SQL extension (in fact it is a plain-text SQL file). I want to restore it into my created databases. I am using pgAdmin III, and when I use its "Restore Wizard" it does not highlight the button "Restore". Instead it is expecting a .backup file extension. I tried using shell the commands for restoring the dump, but it still didn't work. I am a newbie at this. If anybody could help me I would be obliged. Edit I used following command to the Shell SQL Pane of PostGres

工具导航Map