Backup: I deleted a file… how can I restore it?

We have 3 different tools to restore deleted data. The first one (very fast) is only usable if the deletion occurred in the last 7 days; the other tools work even for older data.

Note: Only files on the servers are backed up automatically, i.e. not the files stored locally on a laptop.

Solution 1 – with “snapshots”

If you deleted a file or a directory now or in the last 7 days, you can recover it very fast. Suppose you removed the following latex file:

~/Documents/myphd.tex

To recover it, just enter the following commands:

cd ~/Documents/
cd .snapshots
ls -l

You will see different directories like these, the so called “snapshots”:

total 128
drwxr-x---. 116 demo other 16384 Jun 14 17:56 @GMT-2013.06.17-01.15.21
drwxr-x---. 116 demo other 16384 Jun 14 17:56 @GMT-2013.06.18-01.15.21
drwxr-x---. 116 demo other 16384 Jun 18 12:20 @GMT-2013.06.19-01.15.21
drwxr-x---. 116 demo other 16384 Jun 18 10:15 @GMT-2013.06.20-01.15.21
drwxr-x---. 116 demo other 16384 Jun 19 11:53 @GMT-2013.06.21-01.15.21
drwxr-x---. 116 demo other 16384 Jun 20 11:42 @GMT-2013.06.22-01.15.21
drwxr-x---. 116 demo other 16384 Jun 20 11:42 @GMT-2013.06.23-01.15.21
drwxr-x---. 116 demo other 16384 Jun 20 11:42 @GMT-2013.06.24-01.15.21

Just go ot the directory where you think you should find the deleted file and copy it back:

cd @GMT-2013.06.24-01.15.21/
ls -l
cp myphd.tex ~/Documents/myphd.tex

Solution 2 – with “rdiffweb”

There is another backup-system called “rdiff-backup”.Login with your D-MATH account to rdiffweb here:

Browse into your files and download the version you want.

Solution 3 – with “NetBackup”

Last solution. With NetBackup you can restore files that are up to 3 months old, just send your request to the ID ServiceDesk: servicedesk@id.ethz.ch.

Author

Posted on
in Backup

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

PROTECT YOUR BRAINWORK.

Recent Posts

Trending

Categories

Recent Posts