data-recovery

How can i recover deleted data from sqlite? [duplicate]

血红的双手。 提交于 2019-12-11 02:47:21
问题 This question already has answers here : Undelete accidentally deleted records in Sqlite3 (7 answers) Closed 5 years ago . I want recover deleted record and dropped data from SQLite db file, I check my db file with text editor and i saw dropped data is still there.. I'm using SQLite3.dll (in c#) but i can`t find something property for open db with dropped data or ... Is there any library for helping me? or something simple code for recovering data from sqlite db file? Edit 1: i try to find a

how to restore postgresql DB without backup

◇◆丶佛笑我妖孽 提交于 2019-12-10 15:28:45
问题 Forgot to make a backup. Now I have harddrive with databases and new system with empty postgres. Can I somehow restore databases? by simple copy of files etc? 回答1: If you have the full data directory of your old postgresql system (and if it was the same version, or differing only in a revision number) you can just try to put it in place of your data directory in your new postgresql installation. (Of course, stop postgres server before doing this). It's basically the same procedure used when

Extracting jpegs from a disk dump

匆匆过客 提交于 2019-12-04 13:14:08
问题 I've got a 16GB memory card off someone that won't load properly (asks to be reformatted). I'm trying to get jpegs off it. I've run dd to dump the contents to a file, which worked splendidly. The file won't mount and be read, so the contents are corrupt in someway. Opening the dump in a hex editor shows that there is data on there, and by looking for the markers for the start and end of a jpeg (FFD8 and FFD9), I've been able to manually extract the first 3 jpegs. Before I go and write some

How can I recover HEAD^'S tree?

拈花ヽ惹草 提交于 2019-12-04 07:47:21
tl;dr: is it possible to recover HEAD^ 's tree if it is deleted and not pushed beforehand and if everything else is intact? I accidentally deleted part of my .git . I'm not entirely sure what's missing. Upon discovering that git push didn't work, I ran a git fsck : Checking object directories: 100% (256/256), done. Checking objects: 100% (1265/1265), done. broken link from commit f3419f630546ba02baf43f4ca760b02c0f4a0e6d to tree 29616dfefd2bff59b7fb3177e99b4a1efc7132fa broken link from commit ccfe9502e24d2b5195008005d83155197a2dca25 to tree 0580c3675560cbfd3f989878a9524e35f53f08e9 broken link

Extracting jpegs from a disk dump

纵饮孤独 提交于 2019-12-03 08:20:40
I've got a 16GB memory card off someone that won't load properly (asks to be reformatted). I'm trying to get jpegs off it. I've run dd to dump the contents to a file, which worked splendidly. The file won't mount and be read, so the contents are corrupt in someway. Opening the dump in a hex editor shows that there is data on there, and by looking for the markers for the start and end of a jpeg (FFD8 and FFD9), I've been able to manually extract the first 3 jpegs. Before I go and write some code to stream the file, find the offsets and dump the files, is there any existing way to do this? I can

How to recover database from MDF in SQL Server 2005?

不羁岁月 提交于 2019-12-03 03:54:58
问题 I have an MDF file and no LDF files for a database created in MS SQL Server 2005. When I try to attach the MDF file to a different SQL Server, I get the following error message. The log cannot be rebuilt because there were open transactions/users when the database was shutdown, no checkpoint occurred to the database, or the database was read-only. This error could occur if the transaction log file was manually deleted or lost due to a hardware or environment failure. I would like to

Deleted database accidentally by a bash script, rescue please

对着背影说爱祢 提交于 2019-12-03 02:22:22
问题 My developer committed a huge mistake and we cannot find our mongo database anyone in the server. Rescue please!!! He logged into the server, and saved the following shell under ~/crontab/mongod_back.sh : And then he run ./mongod_back.sh , then there were lots of permission denied , then he did Ctrl+C . Then the server shut down automatically. He tried to restart the server, then he got an grub error: He then contacted AliCloud, the engineer connected the disk to another working server, so

Deleted database accidentally by a bash script, rescue please

最后都变了- 提交于 2019-12-02 15:55:17
My developer committed a huge mistake and we cannot find our mongo database anyone in the server. Rescue please!!! He logged into the server, and saved the following shell under ~/crontab/mongod_back.sh : And then he run ./mongod_back.sh , then there were lots of permission denied , then he did Ctrl+C . Then the server shut down automatically. He tried to restart the server, then he got an grub error: He then contacted AliCloud, the engineer connected the disk to another working server, so that he could check the disk. Then, he realized that some folders have gone, including /data/ where the

How to get the offset in a block device of an inode in a deleted partition

北战南征 提交于 2019-12-02 11:16:05
问题 During a fresh installation, I accidentally formatted a disk containing datas. I have tried using some tools: testdisk, foremost, but I did not get good results. (see my unsuccessful post on superuser). So I have decided to read some docs about ext2 filesystem structure, and I could get some results: The deleted partition have a directory tree like that: dev |-scripts |-projects |-services |-... Medias |-downloads |-Musique |-... backup ... So, based on the ext2 directory entry format:

How to recover Mysql database from backup files

孤人 提交于 2019-12-01 11:02:57
问题 I have using VPS that had to be re-imaged. my DB was part of it and it was being backup up as the app wasn't in production yet. However, there is some data that I wish to recover on it. the VPS provider is giving me a backup of the image (Ubunto Linux) that has all the files. Is there a way I can recover my data? 回答1: The mysql data files in Ubuntu are located at /var/lib/mysql To restore your database you need: 1) create new database named as old one 2) stop mysql server 3) copy old database