Restore File To Its Location from where it was deleted


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Restore File To Its Location from where it was deleted
# 1  
Old 12-05-2009
Restore File To Its Location from where it was deleted

Hello,
When I am deleleting some file that time I am moving that file to backup
directory and when I say restore then its showing me the backupdirectory
path and file with index..Ex..if i delete 3 files then restore will shoe me:
:0:/backup/somedeletedfile
:1:/backup/somedeletedfile10
:2:/backup/somedeletedfile20

My concern is if someone will say restore 1...then i want to restore
somedeletedfile20 to its original location i.e. the location from where it is
deleted

Can Nyone please help me.
# 2  
Old 12-05-2009
The old path of the file should be stored somewhere in a file, else, how could you retrieve the original location?
# 3  
Old 12-05-2009
I also think so...U r Right...I think there is no other way to do it.Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to find a existing file location and directory location in Solaris box?

Hi This is my third past and very impressed with previous post replies Hoping the same for below query How to find a existing file location and directory location in solaris box (1 Reply)
Discussion started by: buzzme
1 Replies

2. Shell Programming and Scripting

How to copy a file from one location to another location?

I have file file1.txt in location 'loc1'. Now i want a copy of this file in location 'loc2' with a new file called test.txt. Please help me how to do this in shell script. (1 Reply)
Discussion started by: vel4ever
1 Replies

3. Shell Programming and Scripting

File created in a different location instead of desired location on using crontab

Hi, I am logging to a linux server through a user "user1" in /home directory. There is a script in a directory in 'root' for which all permissions are available including the directory. This script when executed creates a file in the directory. When the script is added to crontab, on... (1 Reply)
Discussion started by: archana.n
1 Replies

4. Emergency UNIX and Linux Support

Can't restore my deleted etc from tape

Hi I recently deleted my /etc but I had a backup on tape. I was able to boot the server with a cd-rom and mounted the /c1t0d0s0 which is where the root directory resides. However when I tried to restore the backup with tar xvf /dev/rmt/0n I wasn't successful even though I was able to use the tar... (2 Replies)
Discussion started by: rahmantanko
2 Replies

5. Solaris

Emergency - restore a deleted zfs snapshot

Hi, I deleted a zfs snapshot because it was as big as the original zfs. After the snapshot was removed, all the data in the original zfs is gone. How this happened? Can I restore the snapshot? Please help. Thanks a lot! (5 Replies)
Discussion started by: aixlover
5 Replies

6. Shell Programming and Scripting

restore deleted file

I accidently deleted the files from linux machine. How to restore back the files. (1 Reply)
Discussion started by: sandy1028
1 Replies

7. Shell Programming and Scripting

Put one string from one location to another location in a file

Hi Everyone, I have 1.txt here a b c' funny"yes"; d e The finally output is: here a b c d e' funny"yes"; (1 Reply)
Discussion started by: jimmy_y
1 Replies

8. Shell Programming and Scripting

how to restore the deleted files

hi, if i delete a file from /home/san/abc.cpp in linux/unix and i want to restore it back how to do that ? (3 Replies)
Discussion started by: mail2sant
3 Replies

9. Solaris

restore deleted folder

Hi, Can someone help me out as to how to recover a deleted folder? the user id which deleted the folder is known, the approx time is known. Its urgent, plz help (2 Replies)
Discussion started by: aboxilica
2 Replies

10. Linux

how can i restore a deleted file

I am a relatively new linux user.would like to know how to undo a deleted file (2 Replies)
Discussion started by: wojtyla
2 Replies
Login or Register to Ask a Question