Sponsored Content
Operating Systems Linux Is it possible to revert a file after overwriting it ? Post 302578812 by Corona688 on Friday 2nd of December 2011 11:15:43 AM
Old 12-02-2011
If you didn't make a backup, you unfortunately don't have a backup. Overwriting a file is even more dicey than deleting it, deleted files may leave partial contents floating around in unallocated disk sectors, overwriting it may actually trash it so there's literally nothing left.

I can't speak for notepad++ though. It might have made temporary files and, given it crashed, not deleted them. Check for temporary files in /tmp/ as well as any recently-modified files under where WINE keeps temp files for Windows and your user (probably ~/.wine/ )

If you want to look contents floating around in raw disk, stop using that disk immediately, boot a livecd, and scan that partition with magicrescue for ASCII text files. It will find text files on your system, potentially in fragments, and save them as numbered files. You'll likely have a ton of files to pick through and sadly aren't guaranteed to find what you want at all.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

successive file renaming & overwriting

Hi all, In our webserver customer wants to see the latest 10 files arrived. So the names are hardcoded in webpage like : filename_01.txt filename_02.txt .... .... filename_10.txt where the filename_01.txt is the latest one (typically the output of ls -1t) in the /../webpage directory.... (2 Replies)
Discussion started by: sabyasm
2 Replies

2. Shell Programming and Scripting

Overwriting File

How to overwrite every time a particular portion of a file? ---------- Post updated at 02:16 PM ---------- Previous update was at 02:07 PM ---------- I have a file whose contents are something like: Output of "apachectl fullstatus" command: ---------------------------------------------... (3 Replies)
Discussion started by: proactiveaditya
3 Replies

3. Programming

Copying and overwriting a file using file descriptor

Hi , i have two basic requirement on linux platform . I am using C language to do this . 1) copying one file to another (assuming i know their file descriptors) 2) Overwriting a file using it file descriptor . Please guide. regards Aki (2 Replies)
Discussion started by: meet123321
2 Replies

4. UNIX Desktop Questions & Answers

overwriting on a file

I have loads of files in different directories which I do miner changed on them and till now I have to create totally new directories for them, specially as I deal with a whole directory at once :wall::wall::wall::wall: it creates such as mess really e.g. FILES="F1/*" for X in $FILES do... (2 Replies)
Discussion started by: A-V
2 Replies

5. Shell Programming and Scripting

Overwriting file with sftp

I have a script, which runs through cronjob every night 9 PM. It is supposed to do following tasks -- 1- Connect to ftp.testsite.com via user redtest 2- Fetch file red_bill.txt to my local server, where my script is residing. 3- Rename red_bill.txt to red_bill.V01.txt everyday on sftp server.... (4 Replies)
Discussion started by: solaris_1977
4 Replies

6. Shell Programming and Scripting

File overwriting

Hi, An application is transferring a file to linux system with same file name. As file is transferring with same name always file will be overwritten. In this case we want to know what times file was overwirtten like below. Modify: 2014-05-12 00:52:01.000000000 Modify: 2014-05-12... (2 Replies)
Discussion started by: Satyak
2 Replies

7. Shell Programming and Scripting

sed is not overwriting a file

hi i have a file as in follwoing: cat apple.txt Apple is a fruit But this fruit is costly Now I used the sed command and i see output as in following # sed 's/fruit/healthy &/' fruit.txt Apple is a healthy fruit But this healthy fruit is costly # sed works fine here. But... (2 Replies)
Discussion started by: Priya Amaresh
2 Replies

8. Shell Programming and Scripting

Avoid overwriting backup file when multiple entries need to replace in one file input from another

Hello, I have been working on script in which search and replace the multiple pattern. 1. update_params.sh read the multiple pattern from input file ParamMapping.txt(old_entry|New_entry) and passing this values one by one to change_text.sh 2. change_text.sh read... (0 Replies)
Discussion started by: ketanraut
0 Replies

9. UNIX and Linux Applications

Logrotate with catalina.out "daily compressed file is overwriting the logs"

Hi Everyone, We are trying to do a logrotate for "catalina.out" daily, So have used the "copytruncate" option in the logrotate configuration but ended up seeing there was a 0kb file touched with "catalina.out" and the other file with the current date(compressed) file created and seems the log is... (2 Replies)
Discussion started by: thiyagoo
2 Replies

10. Ubuntu

Help me to revert the file /root/.ssh/authorized_keys

Hi, I copied the key of rsa.pub to authorized_keys using the below command cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys By mistake i have executed another command view cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys so now additional keys are copied.so please help me... (3 Replies)
Discussion started by: SA_Palani
3 Replies
COPYFS(1)						      Versioning File System							 COPYFS(1)

NAME
CopyFS - Versioning File System for FUSE DESCRIPTION
CopyFS is a copy-on-write, versioning file system for FUSE. CopyFS can be used to maintain the revision history of a directory containing files for which you want to track changes, and be able to revert to any older version. CopyFS lets you do that by transparently making backups of each file that you modify so that you can review and revert to any previous revision. Here is the list of commands related to CopyFS. See their man pages for additional documentation. copyfs-mount(1) Allows a directory to be placed under CopyFS revision control. copyfs-fversion(1) This command lets you check the revision history of a file, and revert to an older version. copyfs-daemon(1) The CopyFS file system itself. You should not have to run it directly, instead use the copyfs-mount command. HISTORY
CopyFS 1.0 was released in December 2004. AUTHORS
CopyFS was created by Thomas Joubert and Nicolas Vigier <nv@n0x.org> LINKS
<http://n0x.org/copyfs/> CopyFS web site. <http://fuse.sourceforge.net/> FUSE - Filesystem in USErspace SEE ALSO
copyfs-fversion(1), copyfs-mount(1), copyfs-daemon(1) copyfs May 2008 COPYFS(1)
All times are GMT -4. The time now is 05:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy