database-backups

Amazon RDS instance backup window duration?

核能气质少年 提交于 2019-12-04 02:20:16
What does the backup window duration setting mean when configuring an Amazon RDS instance? Ratan Sharma 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-windows-shortened.html from Working With Backups documentaion Below is the answer for "what if

Error “invalid byte sequence” while restoring PostgreSQL database

泄露秘密 提交于 2019-12-03 20:29:24
Earlier today, I was trying to restore my PostgreSQL (8.1.22) database from production using pgAdmin III. However, after the restoration procedure finished, it started throwing errors like: WARNING: errors ignored on restore: 4 Also, upon investigation I found that out of all the tables 3 tables hadn't been restored (contained 0 rows). When I checked the log, I found the follwoing error near the 3 tables: pg_restore: [archiver (db)] Error from TOC entry 5390; 0 442375 TABLE DATA tablename postgres pg_restore: [archiver (db)] COPY failed: ERROR: invalid byte sequence for encoding "UTF8":

Is there any tool to backup/restore Google Datastore entities?

北战南征 提交于 2019-12-03 16:23:34
问题 I've playing around with Google App Engine and Google Datastore for a while now and I am facing the need to take regular backups of my stuff up on the cloud. Is there any sort of general purpose tool that allows you to download all your data from a specific instance of google-datastore and restore it to another one? If so, please enlighten me, if not - someone should do it! 回答1: You can use the BulkLoader that is described in the Google Appengine Docs 回答2: There is an opensource application

SQL Server tells me database is in use but it isn't

北慕城南 提交于 2019-12-03 11:04:53
问题 SQL Server keeps telling me a database is in use when I try to drop it or restore it, but when I run this metadata query: select * from sys.sysprocesses where dbid in (select database_id from sys.databases where name = 'NameOfDb') It returns nothing. Sometimes it will return 1 process which is a CHECKPOINT_QUEUE waittype. If I try to kill that process, it won't let me (cannot kill a non-user process). Anyone have any idea what's wrong? 回答1: There could be lots of things blocking your database

Database Mirroring / Postgres Streaming Replication

巧了我就是萌 提交于 2019-12-03 07:01:17
问题 I am not a DBA; I'm the primary developer of an enterprise database based application. I'm currently specing out some new machines to upgrade our existing enterprise database. Currently we're running Postgres 8.4 with a database at our DR site that receives updates at intervals via some custom rsync work a former employee performed. One of the major issues we're trying to tackle is latency between two global offices. We have staff in NY and staff in London. Currently, the London staffers

Restoring SQL Server backup to Azure SQL Database

狂风中的少年 提交于 2019-12-03 06:28:23
问题 Is there a way to simply take a SQL backup .bak file, and using that as a restore point to generate a new database on Azure SQL Database? The wizard that I see generally recommended in this situation wants to create a custom file to use, but it pukes on the encrypted objects ( functions and views ) and I don't see another way to get it going. 回答1: If you already have a database on local machine then you can migrate it directly on Azure using SQL Management Studio. Follow these steps: Right

how to backup a django db

久未见 提交于 2019-12-03 03:30:54
问题 I have a Django application that uses a Postgres database. I need to be able to backup and restore the db, both to ensure no data is lost and to be able to copy data from the production server to the development server during testing. There seem to be a few different ways to do this: Just interact with the db directly. So, for Postgres I might write a script using pg_dumpall and psql . Use the sqlclear / sqlall commands that come with Django. Use the dumpdata / loaddata commands that come

SQL Server tells me database is in use but it isn't

元气小坏坏 提交于 2019-12-03 01:30:54
SQL Server keeps telling me a database is in use when I try to drop it or restore it, but when I run this metadata query: select * from sys.sysprocesses where dbid in (select database_id from sys.databases where name = 'NameOfDb') It returns nothing. Sometimes it will return 1 process which is a CHECKPOINT_QUEUE waittype. If I try to kill that process, it won't let me (cannot kill a non-user process). Anyone have any idea what's wrong? There could be lots of things blocking your database. For example, if you have a query window opened on that database, it would be locked by you. Not counting

how to backup a django db

爱⌒轻易说出口 提交于 2019-12-02 17:53:45
I have a Django application that uses a Postgres database. I need to be able to backup and restore the db, both to ensure no data is lost and to be able to copy data from the production server to the development server during testing. There seem to be a few different ways to do this: Just interact with the db directly. So, for Postgres I might write a script using pg_dumpall and psql . Use the sqlclear / sqlall commands that come with Django. Use the dumpdata / loaddata commands that come with Django. So create new fixtures from the db you want to backup and then load them into the db you want

Postgresql - backup database and restore on different owner?

泪湿孤枕 提交于 2019-12-02 16:29:22
I did backup on database on different server and that has different role than I need, with this command: pg_dump -Fc db_name -f db_name.dump Then I copied backup to another server where I need to restore the database, but there is no such owner that was used for that database. Let say database has owner owner1 , but on different server I only have owner2 and I need to restore that database and change owner. What I did on another server when restoring: createdb -p 5433 -T template0 db_name pg_restore -p 5433 --role=owner2 -d db_name db_name.dump But when restore is run I get these errors: pg