backup

How to read the meta data out of SQL Server backup files directly?

风格不统一 提交于 2019-12-10 13:02:22
问题 Generally to get the meta data from SQL Server backup files, we need to use TSQL commands like restore headeronly or restore filelistonly . However, there are some third party tools can read this information directly from the backup files, like this one http://www.yohz.com/sqlbakreader_details.htm. Since this tool don't have a command line version, which makes it less useful. I want to know whether there are some ways that I can read this data directly. Thanks. 回答1: The .bak file is a

SQL Server 2008 Backup Compression Standard Edition

妖精的绣舞 提交于 2019-12-10 12:30:53
问题 I'm trying to backup a database in SQL Server 2008 and have the database compressed using the new compression feature. However, when I run the following code, I get a weird error message: Backup Database <Database> To Disk 'C:\Backup' With Compression I get this error message: Backup Database With Compression is not supported on Standard Edition Does this mean I have to upgrade to the full version or is there a way to enable compression in standard edition? 回答1: Backup Compression is not

How can i create in incremental backups of mysql databases

无人久伴 提交于 2019-12-10 11:15:35
问题 I have linux centos 6.4 server with mysql5.6 I have the cron job for making hourly mysql database backups like this Its in python os.popen("mysqldump -u %s --password=%s -h %s -e --opt --skip-lock-tables --skip-extended-insert -c %s | gzip -c > %s.gz" % (username, password, hostname, database, filename)) The problem is very little data gets chnaged but every time i have to backup all databases 24 times , which takes too much space. What is best alternative for that Is there any way to have

Change Azure Backup Vault Redundancy

醉酒当歌 提交于 2019-12-10 10:24:41
问题 We use Azure Backup and set our backup vaults to use GRS. We want to use LRS instead. It is understood that this cannot be changed once machines have been added to the vault, and we need to start from scratch. Two questions: Do I need to remove the current vault first before I set up a new vault for that same server? Can the current backups be transferred to the new vault? 回答1: Changing a Recovery Service Vault's storage replication type can be achieved via the Portal or PowerShell.

SQL Server Partial Database Backup (excluding some tables)

青春壹個敷衍的年華 提交于 2019-12-10 06:15:00
问题 I'm managing a reasonably large SQL Server database. Some tables contain data that are business-critical and must be backed up offsite daily. But we also have other (read-write) tables that take up about half the size of the database that aren't business-critical. What I would like to do is something like this: Primary filegroup: Tables A, B, C --> daily backup Secondary filegroup: Tables D, E, F --> monthly (or occasional manual) backup When I tried to test this, I got errors while trying to

How can I backup an Azure Cosmos DB

谁都会走 提交于 2019-12-10 03:28:38
问题 I have an Azure Cosmos DB and I need to delete all the resources from this subscription. Is there any way to take a backup offline from the portal? 回答1: You can use Data Migration Tool suggested on Automatic online backup and restore with Azure Cosmos DB article to do the same. There is no way to take a backup and import to Azure CosmosDB. The recommendation is to open a support ticket (e.g. via Azure Portal) or call Azure Support to streamline the backup/restore strategy and to request Azure

Can't import to heroku postgres database from dump

一笑奈何 提交于 2019-12-10 03:10:49
问题 Sorry if it is a duplicate, but I tried to find an answer here, and nothing helped. So I've read heroku articles like this and this. I was able to save a dump file, which I've created with pg:backups capture command. Uploaded it to s3 and tried to restore it with: heroku pg:backups restore DATABASE 'https://s3-eu-west-1.amazonaws.com/somebucket/uploads/tmp/b011.dump' But it just do not work! In console it logs: Unknown database: https://s3-eu-west-1.amazonaws.com/somebucket/uploads/tmp/b011

query for backup a database at another location in file system

穿精又带淫゛_ 提交于 2019-12-10 02:36:59
问题 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

Restore Vim Backups

丶灬走出姿态 提交于 2019-12-10 01:47:47
问题 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

How to backup a database by pyodbc

青春壹個敷衍的年華 提交于 2019-12-09 18:58:51
问题 The backup statement can't be used in a transaction when it execute with pyodbc cursor. It seems that the pyodbc execute the query inside a default transaction. I have also tried to use the autocommit mode or add the commit statement before the backup statement. Both of these are not working. #can't execute the backup statement in transaction cur.execute("backup database database_name to disk = 'backup_path'") #not working too cur.execute("commit;backup database database_name to disk =