database-backups

Amazon RDS instance backup window duration?

自作多情 提交于 2020-01-11 01:22:17
问题 What does the backup window duration setting mean when configuring an Amazon RDS instance? 回答1: If you are using automated backup for a DB instance, by enabling backups. The Backup Window time is the time in which the instance’s back up will be created. Start time : This means the time of the day you configure the backup to take place. Duration : This is the time window where back up will be taken - Default is 30 minutes. For details : http://aws.typepad.com/aws/2011/03/amazon-rds-maintenance

restore a specific AWS Elasticsearch database snapshot backup on a different machine

倖福魔咒の 提交于 2020-01-05 04:48:09
问题 curl -XGET 'elasticsearch-domain-endpoint/_snapshot/repository/_all?pretty' below are the list of indices snapshot, how do i restore a particular snapshot, on to another machine, using Elasticsearch 6.0.1, kibana provided by AWS { "snapshot": "2018-04-08t04-43-08.c5da6a35-8158-4799-a58d-0baf0a432275", "uuid": "cJ2XzzDHSROh-SmiJ1mbHA", "version_id": 6000199, "version": "6.0.1", "indices": [ "test-index2", "l", "test-index", ".kibana", "test-index1", "s" ], "state": "SUCCESS", "start_time":

Skip or ignore definers in Mysqldump

情到浓时终转凉″ 提交于 2020-01-01 09:37:29
问题 I was wondering if I can prevent mysqldump inserting this commands /*!50017 DEFINER=`root`@`localhost`*/ Or if I have to do it afterwards with sed, for example Thanks! 回答1: This issue has been around since 2006 with no sign of ever being fixed. I have, however, piped it through grep (linux only) to trim out the definer lines before writing the dump file: mysqldump -u dbuser -p dbname | grep -v 'SQL SECURITY DEFINER' > dump.sql A bit of a mouthful (or keyboardful?) but I think it's the only

Is copying /var/lib/mysql a good alterntive to mysqldump?

◇◆丶佛笑我妖孽 提交于 2019-12-28 12:13:40
问题 Since I'm making a full backup of my entire debian system, I was thinking if having a copy of /var/lib/mysql directory is a viable alternative to dumping tables with mysqldump. are all informations needed contained in that directory? can single tables be imported in another mysql? can there be problems while restoring those files on a (probably slightly) different mysql server version? 回答1: Yes Yes if the table is using the MyISAM (default) engine. Not if it's using InnoDB. Probably not, and

Handling backups of a large table (>1 TB) in Postgres?

瘦欲@ 提交于 2019-12-25 03:19:08
问题 I have a 1TB table (X) that is a pain to backup. The table X contains historical log data that is not often updated after creation. We usually only access a single row at a time, so performance is still very good. We currently make nightly full logical backups, and exclude X for the sake of backup time and space. We do not need historical backups of X, since the log files from which it is populated are backed up themselves. However, recovery of X by re-processing of the log files would take

Handling backups of a large table (>1 TB) in Postgres?

杀马特。学长 韩版系。学妹 提交于 2019-12-25 03:19:03
问题 I have a 1TB table (X) that is a pain to backup. The table X contains historical log data that is not often updated after creation. We usually only access a single row at a time, so performance is still very good. We currently make nightly full logical backups, and exclude X for the sake of backup time and space. We do not need historical backups of X, since the log files from which it is populated are backed up themselves. However, recovery of X by re-processing of the log files would take

How to backup MySQL database from NSIS

放肆的年华 提交于 2019-12-25 01:48:55
问题 I need to backup a MySQL database from an NSIS installer. I am missing something trivial in the scripts I tried: nsExec::Exec '"$mySqlDirectory\bin\mysqldump.exe" --user=$username --password=$password --routines $dbName --execute="source D:\$dbName.sql"' $0 nsExec::Exec '"$mySqlDirectory\bin\mysqldump.exe" --user=$username --password=$password --routines $dbName --execute="D:\$dbName.sql"' $0 nsExec::Exec '"$mySqlDirectory\bin\mysqldump.exe" --user=$username --password=$password --execute="-

SQL Server 2008 Auto Backup

孤街浪徒 提交于 2019-12-24 22:56:17
问题 We want to have our test servers databases updated from our production server databases on a nightly basis to ensure we're developing on the most recent data. We, however, want to ensure that any fn, sp, etc that we're currently working on in the development environment doesn't get overwritten by the backup process. What we were thinking of doing was having a prebackup program that saves objects selected by our developers and a postbackup program to add them back in after the backup process

What happens to SQL Server jobs that are scheduled during a backup?

白昼怎懂夜的黑 提交于 2019-12-24 14:55:28
问题 Hypothetical question: If a maintenance plan is scheduled to run a full backup of several databases while they're online, and during this time other jobs are scheduled to run (stored procedures, SSIS packages etc), what happens to these jobs during the backup? I'm guessing either: The job is paused until the backup is completed, then they're run in the same order they were scheduled to. Or SQL Server works out what tables will be affected by each scheduled job and backs them up after the job

How do I split a large MySQL backup file into multiple files? [duplicate]

北慕城南 提交于 2019-12-24 12:04:48
问题 This question already has answers here : How do I split the output from mysqldump into smaller files? (18 answers) Closed 3 years ago . I have a 250 MB backup SQL file but the limit on the new hosting is only 100 MB ... Is there a program that let's you split an SQL file into multiple SQL files? 回答1: You can split a large file in Eclipse. I have tried a 105GB file in Windows successfully: Just add the MySQLDumpSplitter library to your project: http://dl.bintray.com/verace/MySQLDumpSplitter