Recover deleted or corrupt files from your home directory or Geode-Project space on the IU research supercomputers

To reduce the risk of accidentally losing data, the home directory and Geode-Project file systems on Indiana University's research supercomputers take daily snapshots of each directory's contents. Each snapshot is saved in a hidden .snap directory within its source directory.

To recover a deleted or corrupted file:

  1. In your home directory or Geode-Project space, list the contents of the .snap directory stored in the directory that had the missing or corrupted file. For example, if you're missing a file from the alliance directory in your home directory space, on the command line, enter:
    ls -apl ~/alliance/.snap
    

    You'll see a list of directories similar to this:

    dr-xr-xr-x 33 root     root 32768 Dec 21 19:15 ./
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 ../
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.11.21-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.11.22-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.11.23-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.11.24-21.15.02/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.11.25-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.11.26-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.11.27-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.11.28-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.11.29-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.11.30-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.12.01-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.12.02-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.12.03-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.12.04-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.12.05-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.12.06-21.15.02/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.12.07-21.15.02/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.12.08-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.12.09-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.12.10-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.12.11-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.12.12-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.12.13-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.12.14-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.12.15-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.12.16-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.12.17-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.12.18-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.12.19-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.12.20-21.15.01/
    drwxr-xr-x  3 gmtarkin dstar  4096 Jul  3 13:19 @GMT-2019.12.21-21.15.01/
    
  2. List the contents of the directory that contains the last best version of your file, depending on the date and time the file was deleted or corrupted. Using the above example, if you need to recover a file that was deleted or corrupted on December 8, 2019, list the contents of the directory from the day before:
    ls -apl ~/alliance/.snap/@GMT-2019.12.07-21.15.02/
    
  3. Verify the file you need is there, and then copy the file to its original directory. For example, to recover the file rebels.csv that was deleted December 8, 2019, from the alliance directory in your home directory, on the command line, enter:
    cp ~/alliance/.snap/@GMT-2019.12.07-21.15.02/rebels.csv ~/alliance/
    

If you can't find the file you need, email the UITS High Performance Systems group.

This is document azvw in the Knowledge Base.
Last modified on 2021-05-18 15:35:19.