From d3533de5f7f113dbcf4668524c89a04467947ee8 Mon Sep 17 00:00:00 2001 From: Alexander Meshcheryakov Date: Mon, 25 Sep 2017 15:43:07 +0300 Subject: [PATCH] Simplified rate limiting wrapper in FAQ Exporting $RATE as environment variable is not need in this case. And example does not use any bash specific features. It should use default system shell instead. (cherry picked from commit f7ec13eabb3751de93bda08003b58e5a76be6f9e) --- docs/faq.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/faq.rst b/docs/faq.rst index 0cc044435..fd9c6e50e 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -624,10 +624,10 @@ can be accomplished with pipeviewer_: Create a wrapper script: /usr/local/bin/pv-wrapper :: - #!/bin/bash + #!/bin/sh ## -q, --quiet do not output any transfer information at all ## -L, --rate-limit RATE limit transfer to RATE bytes per second - export RATE=307200 + RATE=307200 pv -q -L $RATE | "$@" Add BORG_RSH environment variable to use pipeviewer wrapper script with ssh. ::