LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 08-21-2007, 05:55 PM   #1
Dolamite777
LQ Newbie
 
Registered: Feb 2003
Distribution: Centos
Posts: 17

Rep: Reputation: 0
Unhappy Deleted All My Files... They are in the Trash, but......


I managed to accidentally delete all of my files.... via samba....

luckily i have them all go to the Trash....

however... they all seem to have lost their directory structure....

is there any way to "undelete" all the files while keeping the old directory structure?

please tell me there is....

thanks in advance...
 
Old 08-21-2007, 06:06 PM   #2
Dolamite777
LQ Newbie
 
Registered: Feb 2003
Distribution: Centos
Posts: 17

Original Poster
Rep: Reputation: 0
hopefully this is the proper way?

Trash -r DIR/FILE : recover single file to directory DIR


looks like centos doesn't have that program though... and yum didn't find anything....

Last edited by Dolamite777; 08-21-2007 at 06:12 PM.
 
Old 08-21-2007, 06:31 PM   #3
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,762

Rep: Reputation: 199Reputation: 199
Quote:
Originally Posted by Dolamite777 View Post
I managed to accidentally delete all of my files.... via samba....
More details please.

Did you delete them from a Windows client?

If so, you should be able to simply "restore" them and they'll go back to where they belong.
 
Old 08-21-2007, 06:38 PM   #4
Dolamite777
LQ Newbie
 
Registered: Feb 2003
Distribution: Centos
Posts: 17

Original Poster
Rep: Reputation: 0
yes i did this using samba,

i am moving files off my server for an upgrade and since it's rather large i am moving it to several different drives, arrays, etc

somehow when i went to delete the directory i had just transfered... it reversed my selection and instead deleted everything BUT my highlighted directory... never happened to me before, especially since there is no shortcuts for "invert selection"

anyhow... luckily in my samba config I have all the deleted files going to root/.Trash first... so at least i can easily restore them...

problem is I really need them to be back in their old directories, and endless amounts of subdirectories...

i'm running on centos 4.4, gnome...

hopefully this is enough info...

thanks
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where does Trash protocol keeps deleted files? linx win Debian 3 06-13-2007 08:56 AM
Deleted Trash icon in KDE 3.4.2 jong357 Slackware 5 09-05-2005 03:05 PM
I deleted my trash in KDE :( astrowill Linux - Software 3 06-08-2005 05:54 PM
How to make deleted files auto go to trash bin? subaruwrx Slackware 1 07-24-2004 10:10 AM
How to make sure deleted files are put into trash can so that I can undelete them. futurist Linux - General 4 03-20-2003 02:30 AM


All times are GMT -5. The time now is 11:39 AM.

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