From 771168a3afcb8556c35997c00ffbd4421dcd7dc2 Mon Sep 17 00:00:00 2001 From: Marian Beermann Date: Wed, 21 Jun 2017 00:16:25 +0200 Subject: [PATCH] docs: extract: move cwd note to --help --- docs/usage/extract.rst | 6 ------ src/borg/archiver.py | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/usage/extract.rst b/docs/usage/extract.rst index be9268962..292f84bdc 100644 --- a/docs/usage/extract.rst +++ b/docs/usage/extract.rst @@ -21,9 +21,3 @@ Examples # Restore a raw device (must not be active/in use/mounted at that time) $ borg extract --stdout /path/to/repo::my-sdx | dd of=/dev/sdx bs=10M - - -.. Note:: - - Currently, extract always writes into the current working directory ("."), - so make sure you ``cd`` to the right place before calling ``borg extract``. diff --git a/src/borg/archiver.py b/src/borg/archiver.py index e00e344a2..899c4c1d5 100644 --- a/src/borg/archiver.py +++ b/src/borg/archiver.py @@ -2893,6 +2893,11 @@ class Archiver: ``--progress`` can be slower than no progress display, since it makes one additional pass over the archive metadata. + + .. note:: + + Currently, extract always writes into the current working directory ("."), + so make sure you ``cd`` to the right place before calling ``borg extract``. """) subparser = subparsers.add_parser('extract', parents=[common_parser], add_help=False, description=self.do_extract.__doc__,