summaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
Diffstat (limited to 'manual')
-rw-r--r--manual/en/070-restoring.mdwn26
1 files changed, 26 insertions, 0 deletions
diff --git a/manual/en/070-restoring.mdwn b/manual/en/070-restoring.mdwn
index 378b071e..80ea9e5d 100644
--- a/manual/en/070-restoring.mdwn
+++ b/manual/en/070-restoring.mdwn
@@ -90,6 +90,32 @@ restored files. If you do want replace your live data with restored
files, you should restore to a temporary location first, and then move
the files to where you want them to be.
+An actual example of a restoration
+----------------------------------
+
+I had a corrupted gnus file, and this is how I restored it from backup.
+
+ obnam --config=/home/foobar/cron/conf/obnam.conf generations>~/cron/upload/obgen.txt
+
+This copies all generations for the main obnam backup to obgen.txt, and this
+is part of that file.
+
+ 1207586 2014-08-25 08:00:43 .. 2014-08-25 08:08:24 (385163 files, 175029819657 bytes)
+ 1208367 2014-08-25 12:00:42 .. 2014-08-25 12:08:31 (385965 files, 175057598863 bytes)
+ 1209313 2014-08-25 16:00:12 .. 2014-08-25 16:07:33 (386537 files, 175076976590 bytes)
+ 1210254 2014-08-25 20:00:15 .. 2014-08-25 20:09:41 (386896 files, 175086483254 bytes)
+
+And I decided to restore from generation 1208367.
+
+This is the actual restore command.
+
+ obnam --config=/home/foobar/cron/conf/obnam.conf --generation=1208367 restore ~/News/rss/nnrss.el --to=/home/foobar/cron/upload/
+
+This restores 'nnrss.el' to ~/cron/upload/ from where I was able to copy it
+back to its proper place in ~/News/rss/
+
+Obviously you replace your user-name for foobar.
+
Practice makes prestores painless
---------------------------------