Assignee
Type
bug
Priority
major
Status
wontfix
Watchers
0

recovering from invalid data

Anonymous avatarAnonymous created an issue

I was ironically getting ready to gzip my home directory to do a backup and i decided to peep in my revelation file (named default) with vi. I didn't make any changes, and was going to exit but accidentally typed :wq (which saves the file then quits). Alas, now revelation gives me the invalid data message. I have lots of passwords that I have randomly generated that would be nice to get back. Any chance of recovery? I don't know what vi wrote to the file, but I defiantly didn't add anything in myself.

Sorry if this shouldn't be posted here and thanks so much.

Comments (2)

  1. Mikel Olasagasti Uranga

    vi modifies the binary file.

    I've tested creating an entry on a new file and:

    root@ubuntu-64:# cp issue2 issue2.orig root@ubuntu-64:# md5sum issue2 issue2.orig 2f598e4db8545a1e1c6c47af8e0ada8b issue2 2f598e4db8545a1e1c6c47af8e0ada8b issue2.orig root@ubuntu-64:# vi issue2 root@ubuntu-64:# md5sum issue2 issue2.orig 05d553613da20e145bfd96ff21ee33da issue2 2f598e4db8545a1e1c6c47af8e0ada8b issue2.orig root@ubuntu-64:# cat issue2 rvl�� � �,�[xН�]�y��u���G);��l�#� ,u������:]J8>��az8�!������P{�n�i�)�y�[}ɱ5 NODG�Ft?�{:\��G��h� [�� ���g>-.q�>m�2�o���P�tN]o��,z�]B�t������d��źH+ijYNE����^.�vڝN root@ubuntu-64:# cat issue2.orig rvl�� � �,�[xН�]�y��u���G);��l�#� ,u������:]J8>��az8�!������P{�n�i�)�y�[}ɱ5 NODG�Ft?�{:\��G��h� [�� ���g>-.q�>m�2�o���P�tN]o��,z�]B�t������d��źH+ijYNE����^.�vڝNroot@ubuntu-64:#

    Could be fixed removing what vi added but I think this is out of the scope of revelation

  2. Log in to comment »
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.