[NC State Home]  Statistics Department IT/Computing: How-To
 

How-To: restore a file just deleted.

Q.Was created just created today?
A. YES I'm sorry your out of luck, you'll need to re-create the file.
A. NO  Continue...

Q.Was the file removed/overwritten prior to midnight last night?
A. YES You'll need to request that it be restored from backup tape.
A. NO  Continue...

If you answered NO to both of the above questions, then you can quickly restore the file yourself. Here are the step by step instructions. If you have questions please feel free to ask for assistance. Please substitute your "volume" name in the appropriate places.

  1. Login to UNITY and get to a UNIX Window.
  2. Change into the directory where the file last was located.
    cd homework
  3. What directory are you in now?
    stat% pwd
    /afs/unity/users/s/sysadmin/homework
    
  4. Find out the name of the "volume" your file was in.
    stat% fs lq .
    Volume Name         Quota     Used    %Used   Partition
    users.sysadmin 	    50000     35213    74%         65%
    
  5. Mount the backup [read only] "volume".
    stat% fs mkmount BACKUP users.sysadmin.backup
    
  6. Find the old copy of the file and copy to your original directory.
    stat% cd BACKUP/homework
    stat% ls 
    stat% cp homework.txt /ncsu/sysadmin/homework/
    
  7. Return to directory in step [3].
    stat% cd /afs/unity/users/s/sysadmin/homework
    
  8. Remove BACKUP volume.
    stat% fs rmmount BACKUP
    
Congratulations you just restored a file. If you get confused or don't understand the steps, please ask for assistance.

 

[Back] Please send any questions or comments to : webmaster@stat.ncsu.edu