Solved

restore

Posted on 2013-05-25
7
231 Views
Last Modified: 2013-06-04
I accidently deleted..
[oracle@term1 admin]$ rm -rfv *
removed `listener.ora'
removed `listener.ora~'
removed `samples/listener.ora'
removed `samples/tnsnames.ora'
removed `samples/sqlnet.ora'
removed directory: `samples'
removed `shrept.lst'
removed `sqlnet.ora'
removed `tnsnames.ora'
removed `tnsnames.ora~'
[oracle@term1 admin]$ cd ..


Please any way to restore in linux
0
Comment
Question by:walkerdba
  • 3
  • 3
7 Comments
 
LVL 21

Expert Comment

by:Mazdajai
Comment Utility
Do you have a backup?

In general, It is not possible - unless you look into advance restore from the inode tables. (Which I am not familiar with)
0
 

Author Comment

by:walkerdba
Comment Utility
no backup.
0
 

Author Comment

by:walkerdba
Comment Utility
Do you think any of these command works
restore -C [-cklMvVy [-b blocksize ] ] [-D filesystem ] [-f file ] [-F script ] [-L limit ] [-s fileno ] [-T directory ]
 restore -i [-achklmMNuvVy [-A file ] ] [-b blocksize ] [-f file ] [-F script ] [-Q file ] [-s fileno ] [-T directory ]
 restore -P file [-achklmMNuvVy [-A file ] ] [-b blocksize ] [-f file ] [-F script ] [-s fileno ] [-T directory ] [-X filelist ] [file ...]
 restore -R [-cklMNuvVy [-b blocksize ] ] [-f file ] [-F script ] [-s fileno ] [-T directory ]
 restore -r [-cklMNuvVy [-b blocksize ] ] [-f file ] [-F script ] [-s fileno ] [-T directory ]
 restore -t [-chklMNuvVy [-A file ] ] [-b blocksize ] [-f file ] [-F script ] [-Q file ] [-s fileno ] [-T directory ] [-X filelist ] [file ...]
 restore -x [-achklmMNuvVy [-A file ] ] [-b blocksize ] [-f file ] [-F script ] [-Q file ] [-s fileno ] [-T directory ] [-X filelist ] [file ...]

my question is how these command can be used for the above removed files

please help.
0
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 
LVL 21

Expert Comment

by:Mazdajai
Comment Utility
'Restore' is used to restore from a 'dump' backup, not in the delete / restore context.
0
 
LVL 21

Expert Comment

by:Mazdajai
Comment Utility
I am not aware there is any commands in linux you can undo a rm. What about copying the files from another server?
0
 
LVL 27

Accepted Solution

by:
serialband earned 500 total points
Comment Utility
The old fashioned way is a difficult and manual process.  If you haven't already stopped the processes that save files to the disk partition that you've deleted from, you may be out of luck.

First thing to do is to stop everything.  Reboot into single user mode, if you can. init 1

Then you'll have to find your files.
grep -b 'search-text' /dev/partition > file.txt
OR
grep -a -B[size before] -A[size after] 'text' /dev/[your_partition] > file.txt
OR
grep -i -a -B10 -A100 'nixCraft' /dev/sda1 > file.txt

But now there are some utilities to help you.  If you've deleted it from the /boot or running root partition (/)  You should stop your system immediately and take the disk out.
 
http://www.linuxforu.com/2011/09/recover-deleted-files-in-linux/
0
 

Author Closing Comment

by:walkerdba
Comment Utility
yes
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Many people tend to confuse the function of a virus with the one of adware, this misunderstanding of the basic of what each software is and how it operates causes users and organizations to take the wrong security measures that would protect them ag…
SHARE your personal details only on a NEED to basis. Take CHARGE and SECURE your IDENTITY. How do I then PROTECT myself and stay in charge of my own Personal details (and) - MY own WAY...
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now