Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
google site



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-05-2009
Registered User
 

Join Date: Dec 2009
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Sponsored Links
  #2  
Old 12-05-2009
frans's Avatar
Registered User
 

Join Date: Oct 2009
Location: France
Posts: 523
Thanks: 1
Thanked 11 Times in 11 Posts
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
Registered User
 

Join Date: Dec 2009
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
I also think so...U r Right...I think there is no other way to do it.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Put one string from one location to another location in a file jimmy_y Shell Programming and Scripting 1 11-24-2009 12:08 PM
how to restore the deleted files mail2sant Shell Programming and Scripting 3 05-14-2008 06:32 AM
restore deleted folder aboxilica Solaris 2 02-21-2008 01:12 AM
restore deleted files ??? varungupta UNIX for Advanced & Expert Users 10 02-12-2008 05:04 PM
how can i restore a deleted file wojtyla Linux 2 02-20-2005 03:50 PM



All times are GMT -4. The time now is 07:50 AM.