From 99b6163e277567b3506b99d91845579f0bbf66eb Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Mon, 16 Oct 2017 20:24:47 +0200 Subject: [PATCH] Add 'dump' to manual --- doc/050_restore.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/050_restore.rst b/doc/050_restore.rst index 62dc76399..35976b09d 100644 --- a/doc/050_restore.rst +++ b/doc/050_restore.rst @@ -71,3 +71,12 @@ hard links from a fuse mount should be done by a program that preserves hard links. A program that does so is ``rsync``, used with the option --hard-links. +Printing files to stdout +======================== + +Sometimes it's helpful to print files to stdout so that other programs can read +the data directly. This can be achieved by using the `dump` command, like this: + +.. code-block:: console + + $ restic -r /tmp/backup dump latest production.sql | mysql