database-backups

pg_dump vs pg_dumpall? which one to use to database backups?

隐身守侯 提交于 2019-12-02 16:14:37
I tried pg_dump and then on a separate machine I tried to import the sql and populate the database, I see CREATE TABLE ERROR: role "prod" does not exist CREATE TABLE ERROR: role "prod" does not exist CREATE TABLE ERROR: role "prod" does not exist CREATE TABLE ERROR: role "prod" does not exist ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE WARNING: no privileges could be revoked for "public" REVOKE ERROR: role "postgres" does not exist ERROR: role "postgres" does not exist WARNING: no privileges were granted for "public" GRANT which means my user and roles

MongoDB backup plan

回眸只為那壹抹淺笑 提交于 2019-12-02 15:39:10
I want to switch from MySQL to MongoDB but great data losses (more than 1 hour) are not acceptable for me. I need to have 3 backup plans: Hourly backup plan . Data is flushed to disk every X minutes and if something wrong with the server I shall be sure that after reboot it will have all data at least for an hour ago. Can I configure it? Daily backup plan . Data is synced to backup disk every day so even if server explodes I can recover data for yesterday in some hours. Should I use fsync, master-slave or something else? I would like to have minimal traffic so ideally only changes will be sent

How can I port my Sqlite database up to GAE?

戏子无情 提交于 2019-12-01 08:20:46
问题 I have a database in SQLite format in my local HD. I would like to get the database up to GAE so that I can use it to create certain cool web-apps. I have browsed around for a way to do it. However, mostly the projects available are to backup the database in GAE to my local HD. Is there an existing way to get the local Sqlite db up to GAE already? 回答1: There is no way that you can do it directly on appengine, as writing to a file is restricted in appengine . I would say, you should export

How to use Oracle DMP files?

孤街醉人 提交于 2019-11-30 20:50:39
I have some files of an Oracle database with username and password. How do I connect to all files and browse the data tables and fields. I want to view all my records in them. Do I install Oracle Database server? Or is there a tool on internet to connect with my all files and browse data? === Files have .dmp extension === Oracle .dmp files can only be read by Oracle tools. Try installing the free oracle 10g express and use the import command . Or you can use SQL developer which is installed by default with Oracle 10g express or can be downloaded and installed separately. Either way you need to

Run appengine backup from task queue

 ̄綄美尐妖づ 提交于 2019-11-30 19:26:27
问题 In the 1.8.4 release of Google App Engine it states: A Datastore Admin fix in this release improves security by ensuring that scheduled backups can now only be started by a cron or task queue task. Administrators can still start a backup by going to the Datastore Admin in the Admin Console. The way to run scheduled backups with cron is documented, but how can we initiate backups from a task queue task? Are there any other ways to programmatically run backup tasks? 回答1: You can create a task

General purpose remote data backup and download - including InnoDb support

ε祈祈猫儿з 提交于 2019-11-30 18:13:33
I want a PHP based solution to backup database (only data and not code) of a remote server and download the file. I know that Shell based solutions are better for doing such things (running a shell script on local system and connecting through SSH to remote system) but it is a requirement to have a PHP based solution where knowing a URL and having database credentials is enough for a non-techie to take backups. The PHP script can be uploaded to the remote server and executed. Following are the features I want:- Should have support for InnoDb engine at least - foreign key constraints should be

sql server restoring back up error

耗尽温柔 提交于 2019-11-30 07:49:29
I have backed up a database I had created on an other machine running SQL server 2012 express edition and I wanted to restore it on my machine, which is running the same. I have ticked the checkbox overwriting existing one, and got this error: Backup mediaset is not complete. Files: D:\question.bak. Family count:2. Missing family sequence number:1 This happens if, when you made the backup, you had multiple files listed in the backup destination textbox. Go back to your source server and create the backup again; this time, make sure there's only one destination file listed. If you had more than

PHP Database Dump Script - are there any issues?

烂漫一生 提交于 2019-11-30 07:41:24
问题 I found a PHP function to dump a mySQL database that someone else had written, and then cleaned it up and formatted it a bit. I wanted to know if I could get a critique of it. I have ran it, tested it on a Wordpress blog and the DB completely restores, but wanted to get some other eyes on the code. Specifically I am looking for feedback on: Anything that could corrupt the data - not properly escaping etc Violating any best practice / principles Security issues Anything else you may see as an

How to use Oracle DMP files?

白昼怎懂夜的黑 提交于 2019-11-30 05:26:17
问题 I have some files of an Oracle database with username and password. How do I connect to all files and browse the data tables and fields. I want to view all my records in them. Do I install Oracle Database server? Or is there a tool on internet to connect with my all files and browse data? === Files have .dmp extension === 回答1: Oracle .dmp files can only be read by Oracle tools. Try installing the free oracle 10g express and use the import command. Or you can use SQL developer which is

General purpose remote data backup and download - including InnoDb support

喜你入骨 提交于 2019-11-30 02:55:53
问题 I want a PHP based solution to backup database (only data and not code) of a remote server and download the file. I know that Shell based solutions are better for doing such things (running a shell script on local system and connecting through SSH to remote system) but it is a requirement to have a PHP based solution where knowing a URL and having database credentials is enough for a non-techie to take backups. The PHP script can be uploaded to the remote server and executed. Following are