backup

How to backup stored procedures in MySQL

这一生的挚爱 提交于 2019-12-03 06:59:30
问题 I use mysqldump with MySQL 5.0 and I back it up every day, but do not understand the method that only stored procedure backs up. How can I back it up? 回答1: I'm not sure whether you're asking to back up stored procedures as well as everything else, or just the stored procedures on their own... Stored procedured in dump with everything else: mysqldump -R <dbname> #or mysqldump --routines <dbname> Just the stored procedures: mysqldump -n -t -d -R <dbname> #or mysqldump --no-create-db --no-create

How can I retrieve the logical file name of the database from backup file

走远了吗. 提交于 2019-12-03 06:34:53
问题 I was looking into the steps of how to Restore Database Backup using SQL Script (T-SQL). Here are the steps: Database YourDB has full backup YourBackUpFile.bak . It can be restored using following two steps: Step 1: Retrieve the logical file name of the database from the backup. RESTORE FILELISTONLY FROM DISK = 'D:BackUpYourBackUpFile.bak' GO Step 2: Use the values in the LogicalName column in the following step. ----Make Database to single user Mode ALTER DATABASE YourDB SET SINGLE_USER WITH

Can I get a dump of all my databases *except one* using mysqldump?

北城以北 提交于 2019-12-03 06:30:47
问题 I'm currently using mySQLdump to backup my dev machine and servers. There is one project I just started, however, that has a HUUUUUGE database that I don't really need backed up, and i'll be a big problem to add it to the rest of the backup cycle. I'm currently doing this: "c:\Program Files\mysql\MySQL Server 5.1\bin\mysqldump" -u root -pxxxxxx --all-databases > g:\backups\MySQL\mysqlbackup.sql Is it possible to somehow specify "except this database(s)"? I wouldn't like to have to specify the

How to reliably restore MySQL blobs

ⅰ亾dé卋堺 提交于 2019-12-03 06:13:14
I have been backing up a MySQL database for several years with the command: mysqldump myDatabaseName -u root > myBackupFile.sql The backups have appeared to work fine... I then wanted to restore one of the backups to a different named database so I did: mysql myNewDatabaseName -u root < myBackupFile.sql I got some errors about logfile size so I stopped Mysql and removed the logfiles and set the following parameters in the my.ini file and restarted mysql. innodb_log_file_size=64M innodb_log_buffer_size=8M The restore now completes with no errors but one of the three tables which contains blobs

Parsing “date” field of iPhone SMS file from backup

五迷三道 提交于 2019-12-03 06:06:00
问题 While this isn't a programming question per se, it IS related. So I'm trying to figure out how to parse the SMS DB that gets backed up from the iPhone. I'm looking at the "messages" table, specifically the "date" field. I noticed that the more recent messages are using a different numbering system to indicate the date/time. I've narrowed it down to the switch to iMessage, as I have a message sent at 1318470904, with a reply sent at 340164736. I know for a fact that these messages were sent

What's the quickest way to dump & load a MySQL InnoDB database using mysqldump?

故事扮演 提交于 2019-12-03 06:02:36
问题 I would like to create a copy of a database with approximately 40 InnoDB tables and around 1.5GB of data with mysqldump and MySQL 5.1. What are the best parameters (ie: --single-transaction) that will result in the quickest dump and load of the data? As well, when loading the data into the second DB, is it quicker to: 1) pipe the results directly to the second MySQL server instance and use the --compress option or 2) load it from a text file (ie: mysql < my_sql_dump.sql) 回答1: Pipe it directly

Amazon EBS, snapshots as incremental backups

点点圈 提交于 2019-12-03 05:46:19
问题 I'm working on an automated mechanism for our EBS volumes to be backed up on a daily basis. I know quite well the steps to create a new snapshot. Apparently it's all quite simple, you have an EBS volume which you can snapshot, and you can restore the snapshot anytime. Fine. But my concern is about the size of the snapshots, I know these snapshots are stored with compression in S3, and we're going to be charged depending on the size of the snapshots. If we have large amounts of data we'll have

iOS: How can I create a backup copy of my core data base? And how to export/import that copy?

孤街浪徒 提交于 2019-12-03 04:36:52
问题 I want to offer the users of my app the possibility to create a backup of the core data database, especially in case he switches to a new device etc. How would I do that? Especially how can I reimport that file? I mean let's say he makes a backup copy of the database, then changes a ton of stuff and wants to reset to the previous saved backup copy. How would I do that? Thx! 回答1: Take a look at this sample app, it includes functions for making backups, copying backups to and from iCloud,

Adb backup does not work

ⅰ亾dé卋堺 提交于 2019-12-03 04:20:00
I need help from you guys, because I don't know what I did wrong with adb backup. I want to backup my Samsung Galaxy S3 LTE (GT-I9305) without root. I googled it and found Full Android Backup with SDK Manager. I installed all i need for this like Java Development Kit 8 version 66 (JDK 8u66 x64) and Android Studio which contains SDK Manager. Then they sad i should download the Google USB Driver. I downloaded it but nothing happened. I thought it should work now and then I went to C:\Users\MYNAME\AppData\Local\Android\sdk\platform-tools and left-clicked adb whilst holding Shift. Then I clicked

Best practices for core data store (sqlite) backup?

橙三吉。 提交于 2019-12-03 04:01:53
I am working on an update for my new iphone app which will include the ability to back up & restore the Core Data store (SQLite). I have been looking for good options for how to do this but there are very few resources about this. What are the best practices that you have found for doing Core Data backup? I'd like to keep the configuration as simple as possible so that users actually back up. As we know, users very rarely back up manually. I'd like it to be automated if possible. What have you found to be best practices for Core Data store (SQLite) backup? If you just want to do a backup, copy