Posted on 2013-05-25
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
Question by:walkerdba
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
LVL 21

Expert Comment

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)

Author Comment

ID: 39196869
no backup.

Author Comment

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.
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

LVL 21

Expert Comment

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

Expert Comment

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?
LVL 29

Accepted Solution

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
grep -a -B[size before] -A[size after] 'text' /dev/[your_partition] > file.txt
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.

Author Closing Comment

ID: 39219958

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

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...
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

740 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