Solved

restore

Posted on 2013-05-25
7
233 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
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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
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 28

Accepted Solution

by:
serialband earned 500 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

914 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

17 Experts available now in Live!

Get 1:1 Help Now