Difference between revisions of "Self-Service File Recovery"
(35 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | 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 [[BACKUPS - Requesting Restoration of a Deleted File|Requesting Restoration of a Deleted File]]. | + | |
+ | ==Intro== | ||
+ | |||
+ | :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 [[BACKUPS - Requesting Restoration of a Deleted File|Requesting Restoration of a Deleted File]]. | ||
== How to Restore a File == | == How to Restore a File == | ||
* Log in to one of our [[:Category:Linux Clients|Linux clients]]. | * Log in to one of our [[:Category:Linux Clients|Linux clients]]. | ||
+ | |||
* Go to the appropriate backups directory for the system. | * Go to the appropriate backups directory for the system. | ||
** For grad net Linux clients, the directory is <code>/users/backups</code> . | ** For grad net Linux clients, the directory is <code>/users/backups</code> . | ||
** For ugrad net Linux clients, the directory is <code>/home/backups</code> . | ** For ugrad net Linux clients, the directory is <code>/home/backups</code> . | ||
− | * 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. <code> | + | ** For the [[Grad Net Static Datashare]], the directory is <code>/static/backups</code> . |
+ | |||
+ | * 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. <code>2019-09-16-102500</code> contains a backup made at 10:25 am on Monday, September 16th, 2019.) | ||
** It might take a while (several minutes in some cases) to list all of the backups currently available. | ** It might take a while (several minutes in some cases) to list all of the backups currently available. | ||
Line 13: | Line 19: | ||
* 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). | ||
− | ** | + | ** If you'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. | ||
Line 21: | Line 27: | ||
== If You're Not Sure Which Backup to Use == | == If You're Not Sure Which Backup to Use == | ||
− | From a shell, you can use wildcards in | + | From a shell, you can use wildcards in <code>/users/backups</code> for CS '''''Grad''''' accounts and <code>/home/backups</code> for CS '''''Ugrad''''' accounts to look at all of the backups of a particular file at once. |
− | For example, if your account name is <code>account</code> on the | + | For example, if your account name is <i><code>account</code></i> on the CS '''''Grad''''' Net and you realize you accidentally deleted a file named <i><code>example.c</code></i> from your <i><code>homework</code></i> directory, you could run these commands in a terminal: |
<code>cd /users/backups</code> | <code>cd /users/backups</code> | ||
− | <code>ls -l */account/homework/example</code> | + | <code>ls -l */account/homework/example.c</code> |
− | This will take a little while to | + | 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: |
<pre> | <pre> | ||
... | ... | ||
− | -rw-r--r--. 1 account users 848 Apr 15 | + | -rw-r--r--. 1 account users 848 Apr 15 2019 2019-09-16-000000/account/homework/example.c |
− | -rw-r--r--. 1 account users 848 Apr 15 | + | -rw-r--r--. 1 account users 848 Apr 15 2019 2019-09-16-040000/account/homework/example.c |
− | -rw-r--r--. 1 account users 848 Apr 15 | + | -rw-r--r--. 1 account users 848 Apr 15 2019 2019-09-16-080000/account/homework/example.c |
− | -rw-r--r--. 1 account users 848 Apr 15 | + | -rw-r--r--. 1 account users 848 Apr 15 2019 2019-09-16-120000/account/homework/example.c |
− | -rw-r--r--. 1 account users 848 Apr 15 | + | -rw-r--r--. 1 account users 848 Apr 15 2019 2019-09-16-160000/account/homework/example.c |
− | -rw-r--r--. 1 account users 850 | + | -rw-r--r--. 1 account users 850 Sep 16 16:58 2019-09-16-200000/account/homework/example.c |
− | -rw-r--r--. 1 account users 850 | + | -rw-r--r--. 1 account users 850 Sep 16 16:58 2019-09-17-000000/account/homework/example.c |
− | -rw-r--r--. 1 account users 850 | + | -rw-r--r--. 1 account users 850 Sep 16 16:58 2019-09-17-040000/account/homework/example.c |
− | -rw-r--r--. 1 account users 850 | + | -rw-r--r--. 1 account users 850 Sep 16 16:58 2019-09-17-080000/account/homework/example.c |
− | -rw-r--r--. 1 account users 850 | + | -rw-r--r--. 1 account users 850 Sep 16 16:58 2019-09-17-120000/account/homework/example.c |
− | -rw-r--r--. 1 account users 850 | + | -rw-r--r--. 1 account users 850 Sep 16 16:58 2019-09-17-160000/account/homework/example.c |
</pre> | </pre> | ||
− | If the output ended there, you can see that the file was modified on | + | 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 <code>2019-09-17-160000</code> backup to get the file as it existed shortly before it was deleted, or you could use the <code>2019-09-16-160000</code> backup to get the file as it was before it was changed on the 16th. |
== Backup Availability == | == Backup Availability == |
Latest revision as of 11:54, 30 October 2023
Intro
- 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
. - For the Grad Net Static Datashare, the directory is
/static/backups
.
- For grad net Linux clients, the directory is
- 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.
2019-09-16-102500
contains a backup made at 10:25 am on Monday, September 16th, 2019.)- 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).
- If you're having issues finding your backup directory, you can always request restoration from our offline backups.
- 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 /users/backups
for CS Grad accounts and /home/backups
for CS Ugrad accounts to look at all of the backups of a particular file at once.
For example, if your account name is account
on the CS Grad Net and you realize you accidentally deleted a file named example.c
from your homework
directory, you could run these commands in a terminal:
cd /users/backups
ls -l */account/homework/example.c
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.c -rw-r--r--. 1 account users 848 Apr 15 2019 2019-09-16-040000/account/homework/example.c -rw-r--r--. 1 account users 848 Apr 15 2019 2019-09-16-080000/account/homework/example.c -rw-r--r--. 1 account users 848 Apr 15 2019 2019-09-16-120000/account/homework/example.c -rw-r--r--. 1 account users 848 Apr 15 2019 2019-09-16-160000/account/homework/example.c -rw-r--r--. 1 account users 850 Sep 16 16:58 2019-09-16-200000/account/homework/example.c -rw-r--r--. 1 account users 850 Sep 16 16:58 2019-09-17-000000/account/homework/example.c -rw-r--r--. 1 account users 850 Sep 16 16:58 2019-09-17-040000/account/homework/example.c -rw-r--r--. 1 account users 850 Sep 16 16:58 2019-09-17-080000/account/homework/example.c -rw-r--r--. 1 account users 850 Sep 16 16:58 2019-09-17-120000/account/homework/example.c -rw-r--r--. 1 account users 850 Sep 16 16:58 2019-09-17-160000/account/homework/example.c
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-09-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 16th.
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.