~ubuntu-branches/ubuntu/saucy/deja-dup/saucy

« back to all changes in this revision

Viewing changes to help/eo/restore-worst-case.page

  • Committer: Package Import Robot
  • Author(s): Michael Terry
  • Date: 2012-06-05 13:45:39 UTC
  • mfrom: (1.1.43)
  • Revision ID: package-import@ubuntu.com-20120605134539-l35tewhkjfq4qp6e
Tags: 23.2-0ubuntu1
* New upstream release
* debian/control:
  - Add libpeas-dev to Build-Depends
  - Update valac and libglib2.0-dev versions
  - Bump debhelper version to 9
* debian/compat:
  - Bump to 9
* debian/rules:
  - Don't install new .la and .a files from upstream
* debian/patches/allow-resuming-encrypted-backup.patch:
  - Dropped, included upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" its:version="1.0" type="topic" id="restore-worst-case" xml:lang="eo">
 
3
<info>
 
4
  <desc>What to do if you can’t restore your files</desc>
 
5
  <link type="guide" xref="index#restore"/>
 
6
</info>
 
7
 
 
8
<title>When Everything Goes Wrong</title>
 
9
 
 
10
<p><app>Déjà Dup</app> may fail.  Maybe it crashes or gives you an error when you try to restore.  When you really need your data back, the last thing you want do deal with is a bug.  Consider filing a <link href="https://launchpad.net/deja-dup/+filebug">bug report</link> but in the meantime, here are some approaches to workaround a misbehaving <app>Déjà Dup</app> and get your data back.</p>
 
11
 
 
12
<note><p>This is going to get technical.  If none of this makes sense to you, don’t be afraid to <link xref="support">ask for help</link>.</p></note>
 
13
 
 
14
<steps>
 
15
  <item><p>Open a <app>Terminal</app> window by pressing <keyseq><key>Ctrl</key><key>Alt</key><key>T</key></keyseq>.</p></item>
 
16
  <item><p>Create the directory in which you will place your restored files.  This guide will use <file its:translate="no">/tmp/restore</file>:</p>
 
17
<screen its:translate="no">mkdir -p /tmp/restore</screen></item>
 
18
</steps>
 
19
 
 
20
<section id="duplicity">
 
21
<title>Restoring with Duplicity</title>
 
22
 
 
23
<p>On the assumption that <app>Déjà Dup</app> is just not working for you right now, you’re going to use the command line tool <app>duplicity</app> that is used by <app>Déjà Dup</app> behind the scenes to back up and restore your files.</p>
 
24
 
 
25
<note style="advanced"><p>If you want more information about <app>duplicity</app> than presented here, run <cmd>man duplicity</cmd>.</p></note>
 
26
 
 
27
<p>The first thing we’ll try is a simple restore of all your data.  Assuming your files are on an external drive mounted as <file its:translate="no">/media/backup</file> and you chose to encrypt the backup, try this:</p>
 
28
<screen its:translate="no">duplicity --gio file:///media/backup /tmp/restore</screen>
 
29
 
 
30
<p>If you didn’t encrypt the backup, add <cmd its:translate="no">--no-encryption</cmd> to the command.</p>
 
31
 
 
32
<section id="locations">
 
33
<title>Other Backup Locations</title>
 
34
<p>If you backed up to a remote or cloud server, the syntax you use with <app>duplicity</app> will be different than the external drive example above.  See below for how to connect to your chosen backup location.</p>
 
35
<note><p>Remember to add <cmd its:translate="no">--no-encryption</cmd> to any example commands if your backup is not encrypted.</p></note>
 
36
<p>If <app>duplicity</app> appears to be having trouble connecting to your server, try downloading all the <app>duplicity</app> files yourself to a local folder and following the simpler example above.</p>
 
37
<terms>
 
38
  <item>
 
39
    <title>Amazon S3</title>
 
40
    <p>Look up your Amazon S3 access key ID and secret access key and replace instances of <var>ID</var> and <var>SECRET</var> in the example below with those respective values.</p>
 
41
    <p>You may have specified a folder in which to put the backup files.  In the example below, replace any instance of <var>FOLDER</var> with that path.</p>
 
42
    <screen its:translate="no">
 
43
export AWS_ACCESS_KEY_ID=<var its:translate="yes">ID</var>
 
44
export AWS_SECRET_ACCESS_KEY=<var its:translate="yes">SECRET</var>
 
45
duplicity s3+http://deja-dup-auto-<var its:translate="yes">LOWERCASE_ID</var>/<var its:translate="yes">DOSIERUJO</var> /tmp/restore</screen>
 
46
  </item>
 
47
  <item>
 
48
    <title>Rackspace Cloud Dosieroj</title>
 
49
    <p>Look up your Rackspace username and API key and replace instances of <var>USERNAME</var> and <var>KEY</var> in the example below with those respective values.</p>
 
50
    <p>You may have specified a container in which to put the backup files.  In the example below, replace any instance of <var>CONTAINER</var> with that name.</p>
 
51
    <screen its:translate="no">
 
52
export CLOUDFILES_USERNAME=<var its:translate="yes">USERNAME</var>
 
53
export CLOUDFILES_APIKEY=<var its:translate="yes">KEY</var>
 
54
duplicity cf+http://<var its:translate="yes">CONTAINER</var> /tmp/restore</screen>
 
55
  </item>
 
56
  <item>
 
57
    <title>FTP</title>
 
58
    <p>Look up your server address, port, username, and password and replace instances of <var>SERVER</var>, <var>PORT</var>, <var>USERNAME</var>, and <var>PASSWORD</var> in the example below with those respective values.</p>
 
59
    <p>You may have specified a folder in which to put the backup files.  In the example below, replace any instance of <var>FOLDER</var> with that path.</p>
 
60
    <p>If you chose to not log in with a username, use <var its:translate="no">anonymous</var> as your <var>USERNAME</var> below.</p>
 
61
    <screen its:translate="no">
 
62
gvfs-mount ftp://<var its:translate="yes">USERNAME</var>@<var its:translate="yes">SERVILO</var>:<var its:translate="yes">PORDO</var>/<var its:translate="yes">DOSIERUJO</var>
 
63
duplicity --gio ftp://<var its:translate="yes">USERNAME</var>@<var its:translate="yes">SERVILO</var>:<var its:translate="yes">PORDO</var>/<var its:translate="yes">DOSIERUJO</var> /tmp/restore</screen>
 
64
  </item>
 
65
  <item>
 
66
    <title>SSH</title>
 
67
    <p>Look up your server address, port, username, and password and replace instances of <var>SERVER</var>, <var>PORT</var>, <var>USERNAME</var>, and <var>PASSWORD</var> in the example below with those respective values.</p>
 
68
    <p>You may have specified a folder in which to put the backup files.  In the example below, replace any instance of <var>FOLDER</var> with that path.</p>
 
69
    <screen its:translate="no">
 
70
gvfs-mount ssh://<var its:translate="yes">USERNAME</var>@<var its:translate="yes">SERVILO</var>:<var its:translate="yes">PORDO</var>/<var its:translate="yes">DOSIERUJO</var>
 
71
duplicity --gio ssh://<var its:translate="yes">USERNAME</var>@<var its:translate="yes">SERVILO</var>:<var its:translate="yes">PORDO</var>/<var its:translate="yes">DOSIERUJO</var> /tmp/restore</screen>
 
72
  </item>
 
73
  <item>
 
74
    <title>WebDAV</title>
 
75
    <p>Look up your server address, port, username, and password and replace instances of <var>SERVER</var>, <var>PORT</var>, <var>USERNAME</var>, and <var>PASSWORD</var> in the example below with those respective values.</p>
 
76
    <p>You may have specified a folder in which to put the backup files.  In the example below, replace any instance of <var>FOLDER</var> with that path.</p>
 
77
    <p>If you chose to use a secure connection (HTTPS) when backing up, use <var its:translate="no">davs://</var> instead of <var its:translate="no">dav://</var> in the example below.</p>
 
78
    <screen its:translate="no">
 
79
gvfs-mount dav://<var its:translate="yes">USERNAME</var>@<var its:translate="yes">SERVILO</var>:<var its:translate="yes">PORDO</var>/<var its:translate="yes">DOSIERUJO</var>
 
80
duplicity --gio dav://<var its:translate="yes">USERNAME</var>@<var its:translate="yes">SERVILO</var>:<var its:translate="yes">PORDO</var>/<var its:translate="yes">DOSIERUJO</var> /tmp/restore</screen>
 
81
  </item>
 
82
  <item>
 
83
    <title>Windows Share</title>
 
84
    <p>Look up your server address, username, and password and replace instances of <var>SERVER</var>, <var>USERNAME</var>, and <var>PASSWORD</var> in the example below with those respective values.</p>
 
85
    <p>You may have specified a folder in which to put the backup files.  In the example below, replace any instance of <var>FOLDER</var> with that path.</p>
 
86
    <p>If you specified a domain for your Windows server, add it to the beginning of <var>USERNAME</var> with a semicolon between them.  For example, <var>domain;username</var>.</p>
 
87
    <screen its:translate="no">
 
88
gvfs-mount smb://<var its:translate="yes">USERNAME</var>@<var its:translate="yes">SERVILO</var>/<var its:translate="yes">DOSIERUJO</var>
 
89
duplicity --gio smb://<var its:translate="yes">USERNAME</var>@<var its:translate="yes">SERVILO</var>/<var its:translate="yes">DOSIERUJO</var> /tmp/restore</screen>
 
90
  </item>
 
91
</terms>
 
92
</section>
 
93
 
 
94
</section>
 
95
 
 
96
<section id="by-hand">
 
97
<title>Restoring by Hand</title>
 
98
 
 
99
<p>If even <app>duplicity</app> isn’t working for you, there may be little hope.  The backup file format is complicated and not easily manipulated.  But if you’re desperate, it’s worth a try.</p>
 
100
 
 
101
<p>If you used a remote or cloud server to store your backup, first download all the <app>duplicity</app> files and place them in a folder on your computer.  Then enter that folder in your terminal.</p>
 
102
 
 
103
<p><app>Duplicity</app> stores your data in small chunks called volumes.  Some volumes belong to the periodic ‘full’ or fresh backups and others to the ‘inc’ or incremental backups.  Starting with a full backup set of volumes at volume 1, you’ll need to restore files volume by volume.</p>
 
104
 
 
105
<p>If you encrypted your backup, first you must decrypt the volume with <cmd its:translate="no">gpg</cmd>.  Say you have <file its:translate="no">duplicity-full.20110127T131352Z.vol1.difftar.gpg</file>:</p>
 
106
<screen its:translate="no">gpg --output duplicity-full.20110127T131352Z.vol1.difftar --decrypt duplicity-full.20110127T131352Z.vol1.difftar.gpg</screen>
 
107
 
 
108
<p>Or to do all at once (make sure you have plenty of space!):</p>
 
109
<screen its:translate="no">gpg --multifile --decrypt duplicity-full.20110127T131352Z.*.difftar.gpg</screen>
 
110
 
 
111
<p>Now you have either a <file its:translate="no">.difftar</file> or a <file its:translate="no">.difftar.gz</file> volume (depending on whether you had to decrypt it or not).  Use <cmd its:translate="no">tar</cmd> on whichever one you have to extract the individual patch files:</p>
 
112
<screen its:translate="no">tar xf duplicity-full.20110127T131352Z.vol1.difftar</screen>
 
113
 
 
114
<p>Or again, to do all at once:</p>
 
115
<screen its:translate="no">for t in duplicity-full.20110127T131352Z.*.difftar; do tar xf $t; done</screen>
 
116
 
 
117
<p>Now the patch files will be in <file its:translate="no">multivolume_snapshot</file> and <file its:translate="no">snapshot</file> folders.  Each file that spanned multiple volumes will be in <file its:translate="no">multivolume_snapshot</file>. Let’s say you backed up <file its:translate="no">/home/jane/essay.txt</file>:</p>
 
118
<screen its:translate="no">cd multivolume_snapshot/home/jane/essay.txt
 
119
cat * &gt; essay.txt</screen>
 
120
 
 
121
<p>To recover data from incremental backups, use <cmd its:translate="no">rdiff</cmd> to stitch the files together. See <cmd its:translate="no">man rdiff</cmd> for usage.</p>
 
122
 
 
123
</section>
 
124
 
 
125
</page>