Difference between revisions of "Self-Service File Recovery"

Line 13: Line 13:
  
 
* The backup contains a complete copy of all of our home directories; go into yours (it should match your account name).
 
* The backup contains a complete copy of all of our home directories; go into yours (it should match your account name).
** The backup service was gradually rolled out to all of our accounts over the span of many months.  It's been available for everyone on the grad net since October 20th, 2017 and everyone on the ugrad net since August 29th, 2019. If your home directory isn't present in a given backup, you'll have to [[BACKUPS - Requesting Restoration of a Deleted File|request restoration from our offline backups]].
+
**  If your're having issues finding your backup directory, you can always  [[BACKUPS - Requesting Restoration of a Deleted File|request restoration from our offline backups]].
  
 
* From here, find the file or files you want to restore.
 
* From here, find the file or files you want to restore.

Revision as of 14:19, 20 September 2019

We have the capacity for you to recover old versions of changed or deleted files yourself, from our online backups. If the the below instructions don't work, please see Requesting Restoration of a Deleted File.

How to Restore a File

  • Log in to one of our Linux clients.
  • Go to the appropriate backups directory for the system.
    • For grad net Linux clients, the directory is /users/backups .
    • For ugrad net Linux clients, the directory is /home/backups .
  • Each subdirectory in that directory is a separate backup; the name of the subdirectory gives the date and time the backup was made. (e.g. 2017-10-20-102500 contains a backup made at 10:25 am on Friday, October 20th, 2017.)
    • It might take a while (several minutes in some cases) to list all of the backups currently available.
  • Go into the directory containing the backup you want to use.
  • The backup contains a complete copy of all of our home directories; go into yours (it should match your account name).
  • From here, find the file or files you want to restore.
  • Copy the files from the backup into your own home directory.

If You're Not Sure Which Backup to Use

From a shell, you can use wildcards in the /users/backups (on the Ugrad Net, use /home/backups instead) directory to look at all of the backups of a particular file at once.

For example, if your account name is account on the Grad Net and you realize you accidentally deleted a file named example from your homework directory, you could run these commands in a terminal:

cd /users/backups
ls -l */account/homework/example

This will take a little while to finish--it takes time to access each backup in turn--and it might give output looking something like this:

...
-rw-r--r--. 1 account users 848 Apr 15  2019 2019-09-16-000000/account/homework/example
-rw-r--r--. 1 account users 848 Apr 15  2019 2019-09-16-040000/account/homework/example
-rw-r--r--. 1 account users 848 Apr 15  2019 2019-09-16-080000/account/homework/example
-rw-r--r--. 1 account users 848 Apr 15  2019 2019-09-16-120000/account/homework/example
-rw-r--r--. 1 account users 848 Apr 15  2019 2019-09-16-160000/account/homework/example
-rw-r--r--. 1 account users 850 Sep 10  16:58 2019-09-16-200000/account/homework/example
-rw-r--r--. 1 account users 850 Sep 10 16:58 2019-09-17-000000/account/homework/example
-rw-r--r--. 1 account users 850 Sep 10 16:58 2019-09-17-040000/account/homework/example
-rw-r--r--. 1 account users 850 Sep 10 16:58 2019-09-17-080000/account/homework/example
-rw-r--r--. 1 account users 850 Sep 10 16:58 2019-09-17-120000/account/homework/example
-rw-r--r--. 1 account users 850 Sep 10 16:58 2019-09-17-160000/account/homework/example

If the output ended there, you can see that the file was modified on September 16th and, if there are backups more recent than 4pm on September 17th, deleted on the 17th. You could use the 2019-9-17-160000 backup to get the file as it existed shortly before it was deleted, or you could use the 2019-09-16-160000 backup to get the file as it was before it was changed on the 10th.

Backup Availability

We make online backups of all of our files every five minutes. Most of those backups are only kept for a few hours. (If we kept them indefinitely, we'd run out of storage space very quickly!) Some, however, are kept for days, weeks, months, and even years.

In general, the further back in time you go, the further apart our online backups are. If you need a file that was deleted an hour ago, you might be able to choose from backups that are just minutes apart from each other. If, on the other hand, you need a file that was deleted a year ago, you might have to choose among backups that are weeks apart.

Our offline backups operate a different rate from the online ones, so if there's a file you can't recover from the online backups, you can contact us to request restoration and we'll see if it's available in the offline backups.