LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-11-2005, 06:47 PM   #1
LinuxSeeker
Member
 
Registered: Feb 2004
Location: Linuxland
Distribution: Ubuntu 5.10, KUbuntu 5.10, Mandrake 10.1 - Ubuntu 5.04 (Hoary)
Posts: 346

Rep: Reputation: 30
I accidentaly deleted my files...Help Please


While I was testing a shell script as a user I accidentaly deleted all of my files in /home/user1 directory...

The point is that there were important files there that I need to recover as soon as possible...

Can you suggest any programs that will help me recover my deleted data?
 
Old 09-11-2005, 07:00 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
You can try this. I hope you IMMEDIATELY pulled the plug on the computer. And good luck.
 
Old 09-12-2005, 02:01 PM   #3
otoomet
Member
 
Registered: Oct 2004
Location: Tartu, Ċrhus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 588

Rep: Reputation: 45
Backup is your best friend. It is not at all so hard to do with rsync given you have two computers connected.

I have a small script 'del' which moves the files to directory ~/.Trash and deletes them from there after a while (1 week for me, 3 weeks for my wife ;-). I almost never use 'rm' any more. I recommend you something similar.

Best,
Ott
 
Old 09-12-2005, 03:14 PM   #4
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
Quote:
Originally posted by otoomet
Backup is your best friend. It is not at all so hard to do with rsync given you have two computers connected.

I have a small script 'del' which moves the files to directory ~/.Trash and deletes them from there after a while (1 week for me, 3 weeks for my wife ;-). I almost never use 'rm' any more. I recommend you something similar.

Best,
Ott
Maybe you want to alias 'rm' to that del script?
 
Old 09-13-2005, 03:26 PM   #5
LinuxSeeker
Member
 
Registered: Feb 2004
Location: Linuxland
Distribution: Ubuntu 5.10, KUbuntu 5.10, Mandrake 10.1 - Ubuntu 5.04 (Hoary)
Posts: 346

Original Poster
Rep: Reputation: 30
Well, I guess I will just re-create everything... It will be difficult but if I managed to destroy everything then I must also be able to re-create it...

From now on, I will always have backup copies of my data in a DVD...

Quote:
Originally posted by Matir
Maybe you want to alias 'rm' to that del script?
I will not alias rm to that script... but rm -fr...

Last edited by LinuxSeeker; 09-13-2005 at 03:29 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accidentaly deleted fsatb file jychin Linux - Newbie 6 05-11-2006 01:34 AM
Deleted Files wardialer Linux - Newbie 2 02-28-2005 03:12 AM
Simple question: i deleted accidentaly the /dev/mixer0 entry. how can i restore it ? Hell255 Linux - Software 3 06-18-2004 08:43 AM
How to delete the destination files while the source files deleted in cp -u ? myunicom Linux - General 4 09-26-2003 01:13 PM
accidentaly deleted /dev/ttyS4 DAChristen29 Linux - Hardware 2 07-03-2003 04:34 PM


All times are GMT -5. The time now is 05:15 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration