backup

MySQL InnoDB database restore

左心房为你撑大大i 提交于 2019-12-18 12:00:03
问题 I have to restore a database that has been inadvertently DROPped in MySQL 5.0. From checking the backup files, I only seem to have .FRM files to hold the database data. Can anyone advise whether this is all I need to perform a database restore/import from the backup, or are there other files I should have to hand to complete this? 回答1: .frm files are not the data files, they just store the "data dictionary information" (see MySQL manual). InnoDB stores its data in ib_logfile* files. That's

GAE Datastore backup

十年热恋 提交于 2019-12-18 11:35:35
问题 This question was migrated from Server Fault because it can be answered on Stack Overflow. Migrated 10 years ago . Is it necessary to do backups of GAE's Datastore? Does anyone have any experience, suggestions, tricks for doing so? 回答1: You can now use the managed export and import feature, which can be accessed through gcloud or the Datastore Admin API: Exporting and Importing Entities Scheduling an Export 回答2: Backups are always necessary to protect against human error. Since App Engine

Prevent app from backing up documents folder?

筅森魡賤 提交于 2019-12-18 10:57:44
问题 I'm trying to prevent my app backing up files to iCloud but have become completely confused and a little lost. -EDIT- I've updated this to reflect the changes I've made thanks to the posters below. I want to prevent back up of files which are downloaded to the app's documents directory. So far I have a class called PreventBackup with the following method: + (BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL { NSError *error = nil; BOOL success = [URL setResourceValue: [NSNumber

How to backup Sql Database Programmatically in C#

走远了吗. 提交于 2019-12-18 10:28:10
问题 I want to write a code to backup my Sql Server 2008 Database using C# in .Net 4 FrameWork. Can anyone help in this. 回答1: The following Link has explained complete details about how to back sql server 2008 database using c# Sql Database backup can be done using many way. You can either use Sql Commands like in the other answer or have create your own class to backup data. But these are different mode of backup. Full Database Backup Differential Database Backup Transaction Log Backup Backup

How should I backup & restore docker named volumes

落爺英雄遲暮 提交于 2019-12-18 10:22:15
问题 I'm a little bit confused with the functionnality of named volumes in a docker compose file specifically when it comes to backup/restore my app. I'm actually testing this dockercompose file : version: '2' services: django: build: context: "{{ build_dir }}/docker/django" depends_on: - db environment: [...] volumes: - code:/data/code - www:/var/www - conf:/data/conf networks: - front - db expose: - "8080" entrypoint: "/init" db: build: context: "{{ build_dir }}/docker/postgres" environment: [..

How do I back up a remote SVN repository

放肆的年华 提交于 2019-12-18 10:00:13
问题 I am currently moving my SVN server from my home server to my remote server so I can access it more easily from other locations. My remote server is not backed up so I want to regularly back it up to my home server. Remote server is Windows 2003 server. Home server is Windows Home Server. What is the best way to do this? can I get my home server to get a dump of the remote server every night? Bandwidth isn't a huge consideration but if I could just copy any new checkins to an SVN server on my

PostgreSQL: improving pg_dump, pg_restore performance

我的梦境 提交于 2019-12-18 09:54:43
问题 When I began, I used pg_dump with the default plain format. I was unenlightened. Research revealed to me time and file size improvements with pg_dump -Fc | gzip -9 -c > dumpfile.gz . I was enlightened. When it came time to create the database anew, # create tablespace dbname location '/SAN/dbname'; # create database dbname tablespace dbname; # alter database dbname set temp_tablespaces = dbname; % gunzip dumpfile.gz # to evaluate restore time without a piped uncompression % pg_restore -d

How can I use the Google App engine bulkloader to back up all my data?

﹥>﹥吖頭↗ 提交于 2019-12-18 09:12:03
问题 The docs say appcfg.py --dump --app_id=<app-id> \ --url=http://<appname>.appspot.com/remote_api \ --filename=<data-filename> The thing itself barfs: Usage: appcfg.py [options] <action> appcfg.py: error: no such option: --dump $ cat /usr/local/share/google_appengine/VERSION release: "1.3.4" Thoughts? 回答1: I found that I had to use download_data instead of --dump and --application instead of --app_id, for example: appcfg.py download_data --application=app_id --url=http://etc --filename=file 回答2

SMO ConnectionContext.StatementTimeout setting is ignored

醉酒当歌 提交于 2019-12-18 07:05:21
问题 I am successfully using Powershell with SMO to backup most databases. However, I have several large databases in which I receive a "timeout" error "System.Data.SqlClient.SqlException: Timeout expired". The timout consistently occurs at 10 minutes. I have tried setting ConnectionContext.StatementTimeout to 0, 6000, and to [System.Int32]::MaxValue. The setting made no difference. I have found a number of Google references which indicate setting it to 0 makes it unlimited. No matter what I try,

Import Dumped SVN Repo into Visual SVN

佐手、 提交于 2019-12-18 04:12:45
问题 I have dumped my repository on my old computer to a file with the command. svnadmin dump C:\myrepo/ > mydumpfile Now I decided to use Visual SVN on my new computer as opposed to just a baseline subversion. How do I import my repository into VisualSVN? 回答1: Figured it out now that Andrew Clark pointed out there is a "All Tasks" Repository -> All Tasks -> Open Command Prompt svnadmin create repository-name svnadmin load repository-name < repository-name.dmp 回答2: try copying your repository to