<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title>Kiedy wszystko idzie źle</title>
<link rel="stylesheet" type="text/css" href="../pintail-mallard-pl.css">
<script type="text/javascript" src="../highlight.pack.js"></script><script>
document.addEventListener('DOMContentLoaded', function() {
  var matches = document.querySelectorAll('code.syntax')
  for (var i = 0; i < matches.length; i++) {
    hljs.highlightBlock(matches[i]);
  }
}, false);</script><script type="text/javascript" src="../yelp.js"></script>
</head>
<body lang="pl" dir="ltr">
<header class="gnome-header"><nav><div class="pagewide">
<a id="home-link" class="gnome-navbar-brand" href="../index.html" title="Go to home page"><h1>GNOME Help</h1></a><details class="gnome-langs gnome-langs-wide"><summary title="Change language" aria-label="Change language"><span class="gnome-langs-current">pl</span></summary><ul>
<li><a href="restore-worst-case.html.af">Afrikaans</a></li>
<li><a href="restore-worst-case.html.bs">bosanski</a></li>
<li><a href="restore-worst-case.html.ca">català</a></li>
<li><a href="restore-worst-case.html.cs">čeština</a></li>
<li><a href="restore-worst-case.html.da">dansk</a></li>
<li><a href="restore-worst-case.html.de">Deutsch</a></li>
<li><a href="restore-worst-case.html">English</a></li>
<li><a href="restore-worst-case.html.en_AU">English (Australia)</a></li>
<li><a href="restore-worst-case.html.en_GB">English (United Kingdom)</a></li>
<li><a href="restore-worst-case.html.es">español</a></li>
<li><a href="restore-worst-case.html.eo">Esperanto</a></li>
<li><a href="restore-worst-case.html.eu">euskara</a></li>
<li><a href="restore-worst-case.html.fr">français</a></li>
<li><a href="restore-worst-case.html.gl">galego</a></li>
<li><a href="restore-worst-case.html.hr">hrvatski</a></li>
<li><a href="restore-worst-case.html.id">Indonesia</a></li>
<li><a href="restore-worst-case.html.it">italiano</a></li>
<li><a href="restore-worst-case.html.ku">kurdî (kurmancî)</a></li>
<li><a href="restore-worst-case.html.lt">lietuvių</a></li>
<li><a href="restore-worst-case.html.hu">magyar</a></li>
<li><a href="restore-worst-case.html.nl">Nederlands</a></li>
<li><a href="restore-worst-case.html.nb">norsk bokmål</a></li>
<li><a href="restore-worst-case.html.oc">occitan</a></li>
<li><a href="restore-worst-case.html.pl" aria-current="true">polski</a></li>
<li><a href="restore-worst-case.html.pt_BR">português (Brasil)</a></li>
<li><a href="restore-worst-case.html.sk">slovenčina</a></li>
<li><a href="restore-worst-case.html.sl">slovenščina</a></li>
<li><a href="restore-worst-case.html.fi">suomi</a></li>
<li><a href="restore-worst-case.html.sv">svenska</a></li>
<li><a href="restore-worst-case.html.vi">Tiếng Việt</a></li>
<li><a href="restore-worst-case.html.tr">Türkçe</a></li>
<li><a href="restore-worst-case.html.el">Ελληνικά</a></li>
<li><a href="restore-worst-case.html.bg">български</a></li>
<li><a href="restore-worst-case.html.ru">русский</a></li>
<li><a href="restore-worst-case.html.sr">српски</a></li>
<li><a href="restore-worst-case.html.uk">українська</a></li>
<li><a href="restore-worst-case.html.he" dir="rtl">עברית</a></li>
<li><a href="restore-worst-case.html.ar" dir="rtl">العربية</a></li>
<li><a href="restore-worst-case.html.ps" dir="rtl">پښتو</a></li>
<li><a href="restore-worst-case.html.pa">ਪੰਜਾਬੀ</a></li>
<li><a href="restore-worst-case.html.th">ไทย</a></li>
<li><a href="restore-worst-case.html.my">မြန်မာ</a></li>
<li><a href="restore-worst-case.html.ko">한국어</a></li>
<li><a href="restore-worst-case.html.zh_CN">中文 (简体, 中国)</a></li>
<li><a href="restore-worst-case.html.zh_TW">中文 (繁體, 台灣)</a></li>
<li><a href="restore-worst-case.html.ja">日本語</a></li>
</ul></details>
</div></nav></header><main><aside class="sidebar sidebar-left"><div class="sidebar-contents"><div class="inner">
<div class="title"><h2><span class="title">Spis treści</span></h2></div>
<div class="region"><div class="contents"><ul>
<li class="links"><a href="../deja-dup/index.html.pl" title="Déjà Dup Backups Help">Déjà Dup Backups Help</a></li>
<li class="links"><ul>
<li class="links links-head">Wykonywanie kopii zapasowej</li>
<li class="links"><a href="../deja-dup/prefs.html.pl" title="Creating Backups">Creating Backups</a></li>
</ul></li>
<li class="links"><ul>
<li class="links links-head">File Recovery</li>
<li class="links"><a href="../deja-dup/restore-worst-case.html.pl" title="Kiedy wszystko idzie źle">Kiedy wszystko idzie źle</a></li>
<li class="links"><a href="../deja-dup/restore-full.html.pl" title="Restoring">Restoring</a></li>
</ul></li>
<li class="links"><ul>
<li class="links links-head">O <span class="app">narzędziu do wykonywania kopii zapasowych</span>
</li>
<li class="links"><a href="../deja-dup/support.html.pl" title="Pomoc">Pomoc</a></li>
<li class="links"><a href="../deja-dup/contribute.html.pl" title="Zaangażuj się">Zaangażuj się</a></li>
</ul></li>
</ul></div></div>
</div></div></aside><aside class="sidebar sidebar-right"><div class="sidebar-sections"><div class="inner">
<div class="title"><h2><span class="title">Na tej stronie</span></h2></div>
<div class="region"><div class="contents"><ul>
<li class="links "><a href="../deja-dup/restore-worst-case.html.pl#which-backend" title="Restic or Duplicity?">Restic or Duplicity?</a></li>
<li class="links "><a href="../deja-dup/restore-worst-case.html.pl#restic" title="Restoring with Restic">Restoring with Restic</a></li>
<li class="links "><a href="../deja-dup/restore-worst-case.html.pl#duplicity" title="Przywracanie za pomocą programu Duplicity">Przywracanie za pomocą programu Duplicity</a></li>
</ul></div></div>
</div></div></aside><div class="page">
<header><div class="inner pagewide"><div class="trails" role="navigation"><div class="trail">
<a class="trail" href="../index.html">GNOME</a> » <a class="trail" href="../deja-dup/index.html.pl" title="Déjà Dup Backups Help">Déjà Dup Backups Help</a> › <a class="trail" href="../deja-dup/index.html.pl#restore" title="File Recovery">File Recovery</a> » </div></div></div></header><article><div class="hgroup pagewide"><h1 class="title"><span class="title">Kiedy wszystko idzie źle</span></h1></div>
<div class="region">
<div class="contents pagewide">
<p class="p"><span class="app">Déjà Dup</span> 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 <span class="link"><a href="https://gitlab.gnome.org/World/deja-dup/-/work_items/new" title="https://gitlab.gnome.org/World/deja-dup/-/work_items/new">help request</a></span> but in the meantime, here are some approaches to workaround a misbehaving <span class="app">Déjà Dup</span> and get your data back.</p>
<div class="note" title="Uwaga">
<svg height="24" width="24" version="1.1">
 <g>
  <path class="yelp-svg-fill" d="m4 3h16c0.554 0 1 0.446 1 1v11h-6v6h-11c-0.554 0-1-0.446-1-1v-16c0-0.554 0.446-1 1-1z"></path>
  <path class="yelp-svg-fill" d="m17 16h4l-5 5v-4c0-0.554 0.446-1 1-1z"></path>
 </g>
</svg><div class="inner"><div class="region"><div class="contents"><p class="p">To będzie wymagało wiedzy technicznej. Jeśli nic z tego nie ma dla Ciebie sensu, nie bój się <span class="link"><a href="../deja-dup/support.html.pl" title="Pomoc">poprosić o pomoc</a></span>.</p></div></div></div>
</div>
<div class="note" title="Uwaga">
<svg height="24" width="24" version="1.1">
 <g>
  <path class="yelp-svg-fill" d="m4 3h16c0.554 0 1 0.446 1 1v11h-6v6h-11c-0.554 0-1-0.446-1-1v-16c0-0.554 0.446-1 1-1z"></path>
  <path class="yelp-svg-fill" d="m17 16h4l-5 5v-4c0-0.554 0.446-1 1-1z"></path>
 </g>
</svg><div class="inner"><div class="region"><div class="contents"><p class="p">These instructions assume you have a command line available. Open a <span class="app">Terminal</span> window first.</p></div></div></div>
</div>
</div>
<section id="which-backend"><div class="inner">
<div class="hgroup pagewide"><h2 class="title"><span class="title">Restic or Duplicity?</span></h2></div>
<div class="region"><div class="contents pagewide">
<p class="p">Over time, <span class="app">Déjà Dup</span> has used different backup tools under the covers. Originally, it used <span class="app">Duplicity</span>. Nowadays, it uses <span class="app">Restic</span>.</p>
<p class="p">Your backup might be in either format, depending on when you created it.</p>
<p class="p">Look in the folder where your backup is kept:</p>
<div class="list"><div class="inner"><div class="region"><ul class="list">
<li class="list"><p class="p">If the filenames all start with <span class="cmd">duplicity-</span>, then it's a <span class="app">Duplicity</span> backup. Read the <span class="app">Duplicity</span> sections below.</p></li>
<li class="list"><p class="p">If you see a <span class="cmd">config</span> file and a few folders like <span class="cmd">keys</span>, then it's a <span class="app">Restic</span> backup. Read the <span class="app">Restic</span> sections below.</p></li>
</ul></div></div></div>
</div></div>
</div></section><section id="restic"><div class="inner">
<div class="hgroup pagewide"><h2 class="title"><span class="title">Restoring with Restic</span></h2></div>
<div class="region"><div class="contents pagewide">
<p class="p">On the assumption that <span class="app">Déjà Dup</span> is just not working for you right now, let’s use the command line tool <span class="app">Restic</span> that is used by <span class="app">Déjà Dup</span> behind the scenes to back up and restore your files.</p>
<div class="note note-advanced" title="Zaawansowane">
<svg height="24" width="24" version="1.1">
 <g>
  <path class="yelp-svg-fill" d="m5.4473 12.572c-2.039 0.957-3.4473 3.019-3.4473 5.428v4h20v-4c0-2.406-1.406-4.466-3.441-5.424a8 8 0 0 1 -6.559 3.424 8 8 0 0 1 -6.5527 -3.428z"></path>
  <path class="yelp-svg-fill" d="m12 3a5 5 0 0 0 -5 5 5 5 0 0 0 5 5 5 5 0 0 0 5 -5 5 5 0 0 0 -5 -5zm0 3a2 2 0 0 1 2 2 2 2 0 0 1 -2 2 2 2 0 0 1 -2 -2 2 2 0 0 1 2 -2z"></path>
  <path class="yelp-svg-fill" d="m15.312 6 3.688 1v2l-3.4688 1z"></path>
  <path class="yelp-svg-fill" d="m14 11.312-1 3.688h-2l-1-3.469z"></path>
  <path class="yelp-svg-fill" d="m10 4.6875 1-3.6875h2l1 3.4688z"></path>
  <path class="yelp-svg-fill" d="m8.6875 10-3.6875-1v-2l3.4688-1z"></path>
  <path class="yelp-svg-fill" d="m12.928 4.2435 3.3146-1.9003 1.4142 1.4142-1.7457 3.1599z"></path>
  <path class="yelp-svg-fill" d="m15.757 8.9281 1.9003 3.3146-1.4142 1.4142-3.1599-1.7457z"></path>
  <path class="yelp-svg-fill" d="m8.2435 7.0719-1.9004-3.3145 1.4143-1.4143 3.1596 1.7457z"></path>
  <path class="yelp-svg-fill" d="m11.072 11.757-3.3146 1.9-1.4143-1.414 1.7457-3.1602z"></path>
 </g>
</svg><div class="inner"><div class="region"><div class="contents"><p class="p">If you want more information about <span class="app">Restic</span> than presented here, run <span class="cmd">restic --help</span>.</p></div></div></div>
</div>
<p class="p">Najpierw spróbujemy po prostu przywrócić wszystkie dane. Jeśli pliki są na zewnętrznym dysku zamontowanym jako <span class="file">/media/backup</span> i zostały zaszyfrowane, wykonaj:</p>
<div class="screen"><pre class="contents"><code>restic restore --repo=/media/backup --target=/tmp/restore latest</code></pre></div>
<p class="p">Jeśli kopia zapasowa nie jest zaszyfrowana, dodaj <span class="cmd">--insecure-no-password</span> do polecenia.</p>
<p class="p">If you need to do more advanced debugging, read their <span class="link"><a href="https://restic.readthedocs.io/en/stable/077_troubleshooting.html" title="https://restic.readthedocs.io/en/stable/077_troubleshooting.html">troubleshooting guide</a></span>.</p>
</div></div>
</div></section><section id="duplicity"><div class="inner">
<div class="hgroup pagewide"><h2 class="title"><span class="title">Przywracanie za pomocą programu Duplicity</span></h2></div>
<div class="region">
<div class="contents pagewide">
<p class="p">On the assumption that <span class="app">Déjà Dup</span> is just not working for you right now, let’s use the command line tool <span class="app">duplicity</span> that is used by <span class="app">Déjà Dup</span> behind the scenes to back up and restore your files.</p>
<div class="note note-advanced" title="Zaawansowane">
<svg height="24" width="24" version="1.1">
 <g>
  <path class="yelp-svg-fill" d="m5.4473 12.572c-2.039 0.957-3.4473 3.019-3.4473 5.428v4h20v-4c0-2.406-1.406-4.466-3.441-5.424a8 8 0 0 1 -6.559 3.424 8 8 0 0 1 -6.5527 -3.428z"></path>
  <path class="yelp-svg-fill" d="m12 3a5 5 0 0 0 -5 5 5 5 0 0 0 5 5 5 5 0 0 0 5 -5 5 5 0 0 0 -5 -5zm0 3a2 2 0 0 1 2 2 2 2 0 0 1 -2 2 2 2 0 0 1 -2 -2 2 2 0 0 1 2 -2z"></path>
  <path class="yelp-svg-fill" d="m15.312 6 3.688 1v2l-3.4688 1z"></path>
  <path class="yelp-svg-fill" d="m14 11.312-1 3.688h-2l-1-3.469z"></path>
  <path class="yelp-svg-fill" d="m10 4.6875 1-3.6875h2l1 3.4688z"></path>
  <path class="yelp-svg-fill" d="m8.6875 10-3.6875-1v-2l3.4688-1z"></path>
  <path class="yelp-svg-fill" d="m12.928 4.2435 3.3146-1.9003 1.4142 1.4142-1.7457 3.1599z"></path>
  <path class="yelp-svg-fill" d="m15.757 8.9281 1.9003 3.3146-1.4142 1.4142-3.1599-1.7457z"></path>
  <path class="yelp-svg-fill" d="m8.2435 7.0719-1.9004-3.3145 1.4143-1.4143 3.1596 1.7457z"></path>
  <path class="yelp-svg-fill" d="m11.072 11.757-3.3146 1.9-1.4143-1.414 1.7457-3.1602z"></path>
 </g>
</svg><div class="inner"><div class="region"><div class="contents"><p class="p">If you want more information about <span class="app">Duplicity</span> than presented here, read <span class="link"><a href="http://duplicity.gitlab.io/docs.html" title="http://duplicity.gitlab.io/docs.html">its online documentation</a></span>.</p></div></div></div>
</div>
<p class="p">Najpierw spróbujemy po prostu przywrócić wszystkie dane. Jeśli pliki są na zewnętrznym dysku zamontowanym jako <span class="file">/media/backup</span> i zostały zaszyfrowane, wykonaj:</p>
<div class="screen"><pre class="contents"><code>duplicity restore file:///media/backup /tmp/restore</code></pre></div>
<p class="p">Jeśli kopia zapasowa nie jest zaszyfrowana, dodaj <span class="cmd">--no-encryption</span> do polecenia.</p>
</div>
<section id="duplicity-locations"><div class="inner">
<div class="hgroup pagewide"><h3 class="title"><span class="title">Other Storage Locations</span></h3></div>
<div class="region"><div class="contents pagewide">
<p class="p">If you backed up to a remote or cloud server, the syntax you use with <span class="app">Duplicity</span> will be different than the external drive example above.</p>
<p class="p">Read the <span class="app">Duplicity</span> documentation for instructions on how to connect to your server, or try downloading all the <span class="app">Duplicity</span> files yourself to a local folder and following the simpler example above.</p>
</div></div>
</div></section><section id="duplicity-by-hand"><div class="inner">
<div class="hgroup pagewide"><h3 class="title"><span class="title">Restoring Duplicity Files by Hand</span></h3></div>
<div class="region"><div class="contents pagewide">
<p class="p">Jeśli nawet <span class="app">duplicity</span> nie pomaga, to nie należy się poddawać. Format plików kopii zapasowej jest skomplikowany i niełatwy w modyfikacji, ale w trudnej sytuacji warto spróbować.</p>
<p class="p">Jeśli kopia zapasowa jest na zdalnym serwerze lub w chmurze, to najpierw pobierz wszystkie pliki <span class="app">duplicity</span> i umieść je w katalogu na komputerze. Następnie przejdź do tego katalogu w terminalu.</p>
<p class="p"><span class="app">Duplicity</span> przechowuje dane w małych fragmentach, zwanych woluminami. Niektóre woluminy należą do okresowych pełnych kopii zapasowych, a inne do kopii przyrostowych. Zaczynając od zestawu woluminów pełnej kopii zapasowej na 1. woluminie, będzie trzeba przywracać pliki wolumin po woluminie.</p>
<p class="p">Jeśli kopia zapasowa jest zaszyfrowana, najpierw należy odszyfrować wolumin za pomocą polecenia <span class="cmd">gpg</span>. Jeśli nazywa się on <span class="file">duplicity-full.20110127T131352Z.vol1.difftar.gpg</span>:</p>
<div class="screen"><pre class="contents"><code>gpg --output duplicity-full.20110127T131352Z.vol1.difftar --decrypt duplicity-full.20110127T131352Z.vol1.difftar.gpg</code></pre></div>
<p class="p">Albo zrób wszystko naraz (upewnij się, że jest wystarczająco miejsca!):</p>
<div class="screen"><pre class="contents"><code>gpg --multifile --decrypt duplicity-full.20110127T131352Z.*.difftar.gpg</code></pre></div>
<p class="p">Wynikiem jest wolumin <span class="file">.difftar</span> lub <span class="file">.difftar.gz</span> (w zależności od tego, czy musiał zostać odszyfrowany). Wykonaj polecenie <span class="cmd">tar</span> na woluminie, aby wypakować poszczególne pliki łat:</p>
<div class="screen"><pre class="contents"><code>tar xf duplicity-full.20110127T131352Z.vol1.difftar</code></pre></div>
<p class="p">Albo znowu zrób wszystko naraz:</p>
<div class="screen"><pre class="contents"><code>for t in duplicity-full.20110127T131352Z.*.difftar; do tar xf $t; done</code></pre></div>
<p class="p">Pliki łat będą w katalogach <span class="file">multivolume_snapshot</span> i <span class="file">snapshot</span>. Wszystkie pliki rozciągnięte na kilka woluminów będą w <span class="file">multivolume_snapshot</span>. Jeśli plik w kopii zapasowej nazywa się <span class="file">/home/jane/essay.txt</span>:</p>
<div class="screen"><pre class="contents"><code>cd multivolume_snapshot/home/jane/essay.txt
cat * &gt; essay.txt</code></pre></div>
<p class="p">Aby przywrócić dane z kopii przyrostowej, wykonaj polecenie <span class="cmd">rdiff</span> w celu połączenia plików w całość. <span class="cmd">man rdiff</span> zawiera więcej informacji o tym poleceniu.</p>
</div></div>
</div></section>
</div>
</div></section><section class="links" role="navigation"><div class="inner">
<div class="hgroup pagewide"></div>
<div class="contents pagewide"><div class="links guidelinks"><div class="inner">
<div class="title"><h2><span class="title">Więcej informacji</span></h2></div>
<div class="region"><ul><li class="links "><a href="../deja-dup/index.html.pl#restore" title="File Recovery">File Recovery</a></li></ul></div>
</div></div></div>
</div></section>
</div>
<div class="clear"></div></article><footer><div class="inner pagewide"><div class="about ui-expander" role="contentinfo">
<div class="yelp-data yelp-data-ui-expander" data-yelp-expanded="false"></div>
<div class="inner">
<div class="hgroup"><h2><span class="title">Informacje</span></h2></div>
<div class="region"><div class="contents">
<div class="copyrights">
<div class="copyright">© 2017-2023 Piotr Drąg</div>
<div class="copyright">© 2023 Aviary.pl</div>
</div>
<div class="credits">
<div class="credits-authors">
<div class="title"><span class="title">Napisane przez</span></div>
<ul class="credits"><li>Michael Terry</li></ul>
</div>
<div class="credits-translators">
<div class="title"><span class="title">Przetłumaczone przez</span></div>
<ul class="credits">
<li>Piotr Drąg</li>
<li>Aviary.pl</li>
</ul>
</div>
<div class="credits-blank"></div>
<div class="credits-blank"></div>
</div>
<div class="license">
<div class="title"><span class="title">Creative Commons</span></div>
<div class="contents"><p class="p">Creative Commons Attribution-Share Alike 4.0 Unported</p></div>
</div>
</div></div>
</div>
</div></div></footer>
</div></main>
</body>
</html>
