{"id":40,"date":"2016-01-28T10:03:50","date_gmt":"2016-01-28T09:03:50","guid":{"rendered":"https:\/\/wpethzprd.ethz.ch\/isgdmath\/?p=40"},"modified":"2025-05-05T10:58:22","modified_gmt":"2025-05-05T08:58:22","slug":"backup-restore","status":"publish","type":"post","link":"https:\/\/blogs.ethz.ch\/isgdmath\/backup-restore\/","title":{"rendered":"Backup: I deleted a file&#8230; how can I restore it?"},"content":{"rendered":"\n<p>We have 3 different ways\/tools to restore deleted data on the server. 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.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p><strong>Note:<\/strong> Only files on the servers are backed up automatically, i.e. not the files stored locally on a laptop.<\/p>\n\n\n\n<h2 class=\"wp-block-heading heading\">Solution 1 &#8211; with &#8220;snapshots&#8221;<\/h2>\n\n\n\n<p class=\"p\">If you deleted a file or a directory now or in the&nbsp;<strong>last 7 days<\/strong>, you can recover it very fast. Suppose you removed the following latex file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">~\/Documents\/myphd.tex<\/pre>\n\n\n\n<p class=\"p\">To recover it, just enter the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd ~\/Documents\/\ncd .snapshots\nls -l<\/pre>\n\n\n\n<p class=\"p\">You will see different directories like these, the so called &#8220;snapshots&#8221;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">total 128\ndrwxr-x---. 116 demo other 16384 Jun 14 17:56 @GMT-2013.06.17-01.15.21\ndrwxr-x---. 116 demo other 16384 Jun 14 17:56 @GMT-2013.06.18-01.15.21\ndrwxr-x---. 116 demo other 16384 Jun 18 12:20 @GMT-2013.06.19-01.15.21\ndrwxr-x---. 116 demo other 16384 Jun 18 10:15 @GMT-2013.06.20-01.15.21\ndrwxr-x---. 116 demo other 16384 Jun 19 11:53 @GMT-2013.06.21-01.15.21\ndrwxr-x---. 116 demo other 16384 Jun 20 11:42 @GMT-2013.06.22-01.15.21\ndrwxr-x---. 116 demo other 16384 Jun 20 11:42 @GMT-2013.06.23-01.15.21\ndrwxr-x---. 116 demo other 16384 Jun 20 11:42 @GMT-2013.06.24-01.15.21\n<\/pre>\n\n\n\n<p class=\"p\">Just go ot&nbsp;the directory where&nbsp;you think you should find the deleted file and copy it back:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd @GMT-2013.06.24-01.15.21\/\nls -l\ncp myphd.tex ~\/Documents\/myphd.tex\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading heading\">Solution 2 &#8211; with &#8220;rdiff-web&#8221;<\/h2>\n\n\n\n<p class=\"p\">There is another backup-system called &#8220;rdiff-backup&#8221;. Login with your D-MATH account to rdiff-web here:<\/p>\n\n\n\n<ul class=\"wp-block-list nobullet\">\n<li><a href=\"https:\/\/rdiff-web.math.ethz.ch\/\">https:\/\/rdiff-web.math.ethz.ch<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"p\">Browse into your files and download the&nbsp;version you want.<\/p>\n\n\n\n<h2 class=\"wp-block-heading heading\">Solution 3 &#8211; with &#8220;NetBackup&#8221;<\/h2>\n\n\n\n<p class=\"p\">Last solution. With NetBackup you can restore files that are up to 3 months old, just send your request to the ID ServiceDesk:&nbsp;<a href=\"mailto:servicedesk@id.ethz.ch\">servicedesk@id.ethz.ch<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have 3 different ways\/tools to restore deleted data on the server. 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.<\/p>\n","protected":false},"author":43853,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[141877],"tags":[],"class_list":["post-40","post","type-post","status-publish","format-standard","hentry","category-backup"],"_links":{"self":[{"href":"https:\/\/blogs.ethz.ch\/isgdmath\/wp-json\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.ethz.ch\/isgdmath\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.ethz.ch\/isgdmath\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.ethz.ch\/isgdmath\/wp-json\/wp\/v2\/users\/43853"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.ethz.ch\/isgdmath\/wp-json\/wp\/v2\/comments?post=40"}],"version-history":[{"count":1,"href":"https:\/\/blogs.ethz.ch\/isgdmath\/wp-json\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":1688,"href":"https:\/\/blogs.ethz.ch\/isgdmath\/wp-json\/wp\/v2\/posts\/40\/revisions\/1688"}],"wp:attachment":[{"href":"https:\/\/blogs.ethz.ch\/isgdmath\/wp-json\/wp\/v2\/media?parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.ethz.ch\/isgdmath\/wp-json\/wp\/v2\/categories?post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.ethz.ch\/isgdmath\/wp-json\/wp\/v2\/tags?post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}