backup

PDO MySQL backups function

时光总嘲笑我的痴心妄想 提交于 2019-12-05 02:05:10
问题 this function here http://davidwalsh.name/backup-mysql-database-php has been floating around the internets for a while and is pretty famous, but its in standard mysql. does anyone have the same but in PDO? if not does anyone want to make one? is it even possible, i read somewhere that PDO doesnt do SHOW CREATE TABLE - is that right? finally, can someone explain wht difference between that function and using SELECT * INTO OUTFILE is? (please dont mark this down for containing too many

How to backup and restore the Mongodb database

旧城冷巷雨未停 提交于 2019-12-05 01:33:10
问题 How to use C# to backup and restore the Mongodb database? For now there is only an server to save the mongodb data, and I want to make an backup in case of the server is destroyed so that I can restore it. Dose anybody know how to do that using C#? 回答1: If you just want automated backups, there is an easier way than resorting to a full-fledged programming language: http://docs.mongodb.org/manual/tutorial/backup-databases-with-filesystem-snapshots/ As shown in the link, the below command would

query for backup a database at another location in file system

青春壹個敷衍的年華 提交于 2019-12-05 01:29:13
BACKUP DATABASE <myDataBaseName> TO DISK = 'C:\PathtoBackup\FileName.bak' this query is worked for a database which is created in the gui of SQLServer express edition I have attached my database which is physically at D drive(D:\testing.mdf) to SQLServer using GUI in SQlServer Mgmt Studio.After attaching, SSMS displays the database name as "D:\testing.mdf" in Object explorer rather than testing. SELECT DB_NAME() AS DatabaseName . This query results the same that "D:\testing.mdf" The above mentioned BACKUP query is not worked for later BACKUP DATABASE testing TO DISK = 'C:\PathtoBackup\testing

Restore Vim Backups

那年仲夏 提交于 2019-12-05 01:07:59
Vim's file backup system just saved my proverbial @$$ but I have a question. I have vim saving backups to ~/.vim/backups To restore them I went to the directory and (sorted by date) copied the files I needed back to the necessary directories in my project folder. Easy enough, there were only 5 files. However, I'm surprised there's no obvious way to find which directory each file came from. I tried using vim -r path/to/file but that seems to use the swap and not the backup file. Since in my case vim didn't crash (I just mistakenly overwrote the files) there is no swap for these files. So the

Export oracle database to sql file?

允我心安 提交于 2019-12-04 20:28:08
I have a database that is in oracle 8i and i want to export the entire database of a user to a .sql file and the import it to another system that has oracle 10g installed on it. To export your database, you must use the 8i exp utility: exp full=y compress=N userid=system/system_pw file=dumpfilename.dmp log=explog.txt To import your database, you must use the 10g imp utility: imp full=y file=dumpfilename.dmp userid=system/system_pw log=implog.txt The 10g imp utility is backward compatible with previous releases, so you should be able to export using the 8i exp utility and import with the 10g

Daily and weekly backup strategies

前提是你 提交于 2019-12-04 18:52:11
I would like to understand more about Complete GIT backup in Server on everyday or weekly basis. I have tried the @VonC fully and incremental backup script ' sbin/save_bundles ' , mentioned in this answer , which gives the following error. Error message: ./test.sh : line 7 : /home/.bashr : No such file or directory ./test.sh : line 69 : /home/sbin/usrcmd/get_hostname : No such file or directory ./test.sh : line 70 : get_hostname : command not found ./test.sh : line 71 : /home/sbin/usrcmd/get_fqn : No such file or directory ./test.sh : line 72 : get_fqn : command not found VonC The save_bundles

Back up AppEngine database (Google cloud storage?)

核能气质少年 提交于 2019-12-04 18:14:24
问题 I have an AppEngine application that currently has about 15GB of data, and it seems to me that it is impractical to use the current AppEngine bulk loader tools to back up datasets of this size. Therefore, I am starting to investigate other ways of backing up, and would be interested in hearing about practical solutions that people may have used for backing up their AppEngine Data. As an aside, I am starting to think that the Google Cloud Storage might be a good choice. I am curious to know if

Can an MS SQL 2005 backup be restored onto an instance of MS SQL 2008?

孤街浪徒 提交于 2019-12-04 17:38:00
问题 Is it possible to restore a backup of a SQL Server 2005 database onto an instance of SQL Server 2008? I need to rebuild a server as it's getting rather crufty, so I plan to take this opportunity to upgrade to SQL 2008 and wondered if I'll be able to restore my backups OK. 回答1: Upgrading from 2005 to 2008 is OK, moving back might require more work N.B. You might have a problem with your database the logins (as they will not exist in the new server master db) but that's something which would

backup collabnet subversion edge to another hard disk

不羁岁月 提交于 2019-12-04 16:22:28
I've installed Collabnet Subversion Edge, and would like to make sure I have it backed up properly. I would like NOT to use the CloudBackup service offered. I've went to the administration interface for collabnet (localhost:3343) and went to Repositories > Backup Schedule. There, one can choose between 3 different 'Type of Job': Cloud Services Backup Full Dump Backup Hotcopy Backup Neither lets you choose where to copy the backup. I've tried looking up how this works, but documentation seems to be lacking a lot. What is the best way to backup such a repository? Shall I just keep a copy of the

How to backup Sql Server to sql file?

若如初见. 提交于 2019-12-04 15:33:01
问题 In "Back UP" I only get a bak file, but I would like to create .sql file 回答1: Use SQL Server's Generate Scripts commend right click on the database; Tasks -> Generate Scripts select your tables, click Next click the Advanced button find Types of data to script - choose Schema and Data . you can then choose to save to file, or put in new query window. results in CREATE and INSERT statements for all table data selected in bullet 2. 回答2: This is a possible duplicate of: SQL script to get table