Questions tagged [restore]

Use this tag on any questions related to data restore (in contrast to data recovery).

restore
Filter by
Sorted by
Tagged with
162 votes
11 answers
322k views

Restoring MySQL database from physical files

Is it possible to restore a MySQL database from the physical database files. I have a directory that has the following file types: client.frm client.MYD client.MYI but for about 20 more tables. I ...
Abdullah Jibaly's user avatar
242 votes
5 answers
282k views

What is `git restore` and how is it different from `git reset`?

When I want to unstage a staged file, all of my Git tutorials show something like: $ git add * $ git status On branch master Changes to be committed: (use "git reset HEAD <file>..." ...
Thinh NV's user avatar
  • 3,422
88 votes
6 answers
42k views

Android backup/restore: how to backup an internal database?

I have implemented a BackupAgentHelper using the provided FileBackupHelper to backup and restore the native database I have. This is the database you typically use along with ContentProviders and ...
pjv's user avatar
  • 10.7k
552 votes
34 answers
1.5m views

Restore a postgres backup file using the command line?

Locally, I use pgadmin3. On the remote server, however, I have no such luxury. I've already created the backup of the database and copied it over, but is there a way to restore a backup from the ...
TwixxyKit's user avatar
  • 10.3k
245 votes
20 answers
253k views

Can I restore a single table from a full mysql mysqldump file?

I have a mysqldump backup of my mysql database consisting of all of our tables which is about 440 megs. I want to restore the contents of just one of the tables from the mysqldump. Is this possible? ...
Mobius's user avatar
  • 2,735
555 votes
10 answers
753k views

How to take backup of a single table in a MySQL database?

By default, mysqldump takes the backup of an entire database. I need to backup a single table in MySQL. Is it possible? How do I restore it?
Mandar Pande's user avatar
  • 12.6k
15 votes
2 answers
7k views

How do I backup and restore the system clipboard in C#?

I will do my best to explain in detail what I'm trying to achieve. I'm using C# with IntPtr window handles to perform a CTRL-C copy operation on an external application from my own C# application. I ...
gtaborga's user avatar
  • 813
664 votes
30 answers
1.2m views

Database stuck in "Restoring" state

I backed up a database: BACKUP DATABASE MyDatabase TO DISK = 'MyDatabase.bak' WITH INIT --overwrite existing And then tried to restore it: RESTORE DATABASE MyDatabase FROM DISK = 'MyDatabase.bak'...
Ian Boyd's user avatar
  • 252k
432 votes
16 answers
583k views

Export and Import all MySQL databases at once

I want to keep a backup of all my MySQL databases. I have more than 100 MySQL databases. I want to export all of them at the same time and again import all of them into my MySQL server at once. How ...
NewUser's user avatar
  • 13k
123 votes
5 answers
80k views

When exactly are onSaveInstanceState() and onRestoreInstanceState() called?

The following figure (from the official doc) describes the well-known lifecycle of an Android activity: On the other hand, when the activity is destroyed by the system (for example because memory ...
Luis Mendo's user avatar
  • 112k
254 votes
10 answers
453k views

How to restore to a different database in SQL Server?

I have a backup of Database1 from a week ago. The backup is done weekly in the scheduler and I get a .bak file. Now I want to fiddle with some data so I need to restore it to a different database - ...
LocustHorde's user avatar
  • 6,427
40 votes
2 answers
29k views

Restore already bought in-app-purchases on iPhone?

I got so far: After a reinstall, a user needs to click "buy feature", then he gets scared with the $0.99 question, then has to login and then gets told the feature is already bought and he gets it for ...
Daniel Brown's user avatar
  • 1,154
50 votes
11 answers
63k views

Speeding up mysql dumps and imports [closed]

Are there any documented techniques for speeding up mySQL dumps and imports? This would include my.cnf settings, using ramdisks, etc. Looking only for documented techniques, preferably with ...
deadprogrammer's user avatar
169 votes
21 answers
378k views

"No backupset selected to be restored" SQL Server 2012

I have a SQL Server 2012 database with filestream enabled. However, when I backup it and try to restore it on another SQL Server 2012 instance (on another machine), I simply get this message that: ...
Saeed Neamati's user avatar
37 votes
3 answers
50k views

SQL Server backup/restore vs. detach/attach

I have one database which contains the most recent data, and I want to replicate the database content into some other servers. Due to non-technical reasons, I can not directly use replicate function ...
George2's user avatar
  • 45.2k
23 votes
3 answers
25k views

How do you backup and restore a database as a copy on the same server?

I have a SQL2005 Express database that I would like to create a copy of on the same instance. How do you go about doing this with a script? I already have a script for generating the backup, but the ...
RSolberg's user avatar
  • 26.9k
7 votes
1 answer
22k views

is it possible backup and RESTORE a database file in android? non root devices [duplicate]

in my app I need get a backup of my database, but after I'll need restore it again, i have read somethings, but i do not sure if this is necessary to have a rooted device, i need backup/restore the ...
angel's user avatar
  • 4,532
3 votes
2 answers
327 views

git find commit from "working tree"

Suppose a person cloned a git repository and deleted the .git folder. Is there a way to recover which commit they were on? This isn't a duplicate of Best way to restore .git folder or Can deleted .git ...
jgawrych's user avatar
  • 3,429
0 votes
1 answer
910 views

C#/SQL : backup and restore by copy and replace database files? [closed]

First of all, this is a some kind of share knowledge NOT a question. I have faced some problems with creating backup and restore of database by the default method of using backup and restore commands ...
Essam Fahmy's user avatar
  • 2,051
125 votes
9 answers
130k views

What is the correct way to restore a deleted file from SVN?

I deleted a file from a repo and now want to put it back. The best I can figure out is to: update to the revision before the delete copy the files elsewhere update to head copy the files back add ...
BCS's user avatar
  • 77k
114 votes
18 answers
287k views

SQL-Server: Is there a SQL script that I can use to determine the progress of a SQL Server backup or restore process?

When I backup or restore a database using MS SQL Server Management Studio, I get a visual indication of how far the process has progressed, and thus how much longer I still need to wait for it to ...
Veldmuis's user avatar
  • 4,758
42 votes
6 answers
81k views

Retrieve/Recover deleted Netbeans project

I was just working on my Netbeans project and accidentally deleted it and don't know how to recover it. Is there a tmp folder that the deleted project is stored in. Or am I forever doomed? Thanks, ...
Lycana's user avatar
  • 1,164
51 votes
7 answers
36k views

How to restore a minimized Window in code-behind?

This is somewhat of a mundane question but it seems to me there is no in-built method for it in WPF. There only seems to be the WindowState property which being an enum does not help since i cannot ...
brunnerh's user avatar
  • 175k
23 votes
4 answers
60k views

Simple Backup and Restore for mysql Database from Java

How to backup a mysql database from a java code such that: It's saving path is dynamically allocated. Spaces in Path do not create problems. Path is generated using the executing jar file. DBname,...
chettyharish's user avatar
  • 1,714
13 votes
3 answers
4k views

Non-renewing Subscriptions: Removed From Receipt?

I'm implementing in-app purchases for my app (to be released), and providing support for iOS6 and iOS7. My question has to do with differences between non-renewing subscription mechanisms across iOS6 ...
Chris Prince's user avatar
  • 7,486
6 votes
1 answer
19k views

Restore transaction inapp purchase android

How to do restore transaction in in-app billing purchase android. So far I have searched in all links. I didn't find exact infromation. I have used BillingHelper.restoreTransactionInformation(...
user's user avatar
  • 1,979
3 votes
2 answers
5k views

How to restore IDLE to factory settings

I was messing with the Preferences in Python IDLE and I couldn't edit the size of the window. So I right clicked on the windows size where it says "Width and Height" and got a ridiculous size for ...
user2060749's user avatar
2 votes
1 answer
2k views

having problems trying to restore encrypted database

Im trying to copy an encrypted database from the default server to my server for testing purposes but im having troubles doing so because i have never done it so im going to explain my procedure and ...
Armance's user avatar
  • 5,392
48 votes
5 answers
20k views

How can I save opened tabs and tab groups in Visual Studio 2012?

I need to have different set of open tabs and tab groups for each of my tasks. Import and export setting not helping me to do this, neither does this SO question that has been asked similarly but for ...
Nam G VU's user avatar
  • 34.2k
30 votes
8 answers
19k views

Android CheckBox -- Restoring State After Screen Rotation

I have come across some very unexpected (and incredibly frustrating) functionality while trying to restore the state of a list of CheckBoxes after a screen rotation. I figured I first would try to ...
Jared M's user avatar
  • 301
19 votes
2 answers
19k views

How to use redis' `DUMP` and `RESTORE` (offline)?

I tried redis's DUMP command, redirect to file (or pipe), but RESTORE report this error: $ redis-cli dump test > /tmp/test.dump $ cat /tmp/test.dump | redis-cli -x restore test1 0 (error) ERR DUMP ...
Frank Xu's user avatar
  • 396
16 votes
4 answers
10k views

Backup core data locally, and restore from backup - Swift

I'm struggling to find any information about creating backups of core data. My ultimate goal is to allow the user to create multiple backups, and restore from a selected backup. I've found a sample ...
LateNate's user avatar
  • 781
14 votes
5 answers
56k views

Use pg_restore to restore from a newer version of PostgreSQL

I have a (production) DB server running PostgreSQL v9.0 and a development machine running PostgreSQL v8.4. I would like to take a dump of the production DB and use it on the development machine. I ...
Phrogz's user avatar
  • 300k
8 votes
4 answers
24k views

How to backup and restore all the source code in svn?

Right now I am using Windows XP. If i just copy the whole repository folder in visual SVN, once the server is down, how can i restore it via the backuped repository folder? another better solution to ...
MemoryLeak's user avatar
  • 7,290
5 votes
1 answer
4k views

iOS in-app-purchase restore returns many transactions

When I am restoring my previous purchase. Storekit is calling updateTransations with large number of previous transactions. Don't know why it is returning these large amount like 100, 200 ,245, 360, ...
Youssef Henry's user avatar
3 votes
3 answers
1k views

options for restoring appengine datastore data?

A user of our application has accidently deleted data. They'd like this to be restored. We have no special logic or datastore entities that can do this. However, we do daily backups of our entire ...
aloo's user avatar
  • 5,381
3 votes
3 answers
6k views

Sqlite DB Android Backup/Restore

I wanted to know what the best practices are for backing up and restoring a SQLite DB on android. Currently I approach the issue by taking the DB to be backed up and using File Input/Output Streams to ...
ControlAltDelete's user avatar
2 votes
2 answers
3k views

Restore Purchase : Non-Consumable

I have completed a small app where I have a non-consumable purchase option. It is on the App Store. The purchase of the product runs OK. It's my Restore Purchase function that seems to do nothing. I ...
Katherine Jenkins's user avatar
2 votes
1 answer
2k views

SQL Server: Database stuck in “Restoring” state with PHP

I tried to backup my database following the instruction from SQL Server: Database stuck in "Restoring" state. but i have my database stuck in "Restoring" state. php code below: $database = "...
channa ly's user avatar
  • 9,667
1 vote
1 answer
391 views

Can I get back the files in working tree which disappeared resulting from running git restore -s@ -SW?

I forgot to add .ai to my .gitignore file, but ran $ git add . and added quite some .ai files to the index. When I ran $ git status and saw them, I wanted to remove them from the index. In haste, I ...
Sherman Chen's user avatar
1 vote
4 answers
3k views

Backing up (and restoring) a Plone instance

I have a Plone installation in my home directory under Linux. ~/Plone. This was made from a default distribution of Plone from its website. So Plone compiled own python and is bundeled with Zope. ...
java.is.for.desktop's user avatar
1 vote
4 answers
1k views

can i restore a .git file after rm-rf?

I needed to pull the master branch but was having issues merging it into my local master and so thought it expeditious to simply rm -rf the entire folder. This was the greatest error of my life to ...
spb's user avatar
  • 4,109
235 votes
20 answers
243k views

SQL Server Restore Error - Access is Denied

I created a database on my local machine and then did a backup called tables.bak of table DataLabTables. I moved that backup to a remote machine without that table and tried to do a restore but get ...
cdub's user avatar
  • 25.2k
174 votes
10 answers
253k views

When restoring a backup, how do I disconnect all active connections?

My SQL Server 2005 doesn't restore a backup because of active connections. How can I force it?
Jader Dias's user avatar
  • 89.4k
145 votes
3 answers
133k views

Git - Can we recover deleted commits? [duplicate]

I am surprised, I couldn't find the answer to this on SO. Can we recover/restore deleted commits in git? For example, this is what I did: # Remove the last commit from my local branch $ git reset ...
Atri's user avatar
  • 5,721
102 votes
7 answers
84k views

PostgreSQL: improving pg_dump, pg_restore performance

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 ...
Joe Creighton's user avatar
89 votes
4 answers
39k views

How to save/restore Sublime Text 2 configs/plugins to migrate to another computer?

I need to migrate from one Mac to another, and want Sublime Text 2 on a new computer to have all the same configuration/plugins I have installed on the old one. Is there some folder(s) I could just ...
earlyadopter's user avatar
  • 1,547
68 votes
6 answers
59k views

Moving a Subversion repository to another server

I have a server that hosts my Subversion code base. That server is currently a Windows Server 2003 box, and my IT administrator wants to update it to Windows Server 2008. This means that I'm going to ...
Ryan Smith's user avatar
  • 8,334
52 votes
6 answers
65k views

restoring git repository from bundle backup

i created backups of my git repository like in How to backup a local Git repository? proposed with git bundle create /tmp/foo-all --all I can see all refs are in there, including a remote ref ...
user1283719's user avatar
44 votes
6 answers
94k views

How to restore MySQL dump from host to Docker container

I'm sure this is a duplicated topic, but I simply cannot get it done: I like to restore my database dump to MySQL container in run time, without modifying the docker-compose.yml file. Dockerfile ...
bimlas's user avatar
  • 2,447