[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

restore

Posted on 2013-05-25
7
Medium Priority
?
245 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39196853
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
ID: 39196869
no backup.
0
 

Author Comment

by:walkerdba
ID: 39196945
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
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
LVL 21

Expert Comment

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

Expert Comment

by:Mazdajai
ID: 39197007
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 30

Accepted Solution

by:
serialband earned 2000 total points
ID: 39197024
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
ID: 39219958
yes
0

Featured Post

Looking for the Wi-Fi vendor that's right for you?

We know how difficult it can be to evaluate Wi-Fi vendors, so we created this helpful Wi-Fi Buyer's Guide to help you find the Wi-Fi vendor that's right for your business! Download the guide and get started on our checklist today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, I read that Microsoft has analysed statistics for their security intelligence report. It revealed: still, the clear majority of windows users do their daily work as administrator. An administrative account is a burden, security-wise. My ar…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

650 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