How do I restore a file on the Linux systems (unixspace)?

Every directory on the Linux linuxremote systems has a hidden directory called .snapshot.  If you go into that (cd .snapshot), you’ll find a list of directories with various dates and times:

[student@linuxremote1 ~/.snapshot]$ ls -lu
total 1144
drwxr-x--x 112 student student 86016 Jan 25 00:00 daily.2020-01-25_0000
drwxr-x--x 112 student student 86016 Jan 26 00:00 daily.2020-01-26_0000
drwxr-x--x 112 student student 86016 Jan 27 00:00 daily.2020-01-27_0000
drwxr-x--x 112 student student 86016 Jan 28 00:00 daily.2020-01-28_0000
drwxr-x--x 112 student student 86016 Jan 29 00:00 daily.2020-01-29_0000
drwxr-x--x 112 student student 86016 Jan 30 00:00 daily.2020-01-30_0000
drwxr-x--x 112 student student 86016 Jan 31 00:00 daily.2020-01-31_0000
drwxr-x--x 112 student student 86016 Jan 30 16:00 hourly.2020-01-30_1600
drwxr-x--x 112 student student 86016 Jan 30 20:00 hourly.2020-01-30_2000
drwxr-x--x 112 student student 86016 Jan 31 04:00 hourly.2020-01-31_0400
drwxr-x--x 112 student student 86016 Jan 31 08:00 hourly.2020-01-31_0800
drwxr-x--x 112 student student 86016 Jan 31 12:00 hourly.2020-01-31_1200

If you then go into one of these directories, you’ll see your files as they existed at that particular date and time.  Simply copy the file(s) you wish to recover into the appropriate place in your home directory, e.g.:

[student@linuxremote1 ~/.snapshot/daily.2020-01-30_0000]$ cp myfile ~/myfile

The above command would copy myfile from the midnight on Jan. 30, 2020 snapshot to the user’s home directory.

If you need a file or directory restored prior to the time available in the snapshots, please email ecst@bucknell.edu with the location of where the file was and from what date you’d like it restored.  We can restore files up to six months ago.