Browse Source

Merge pull request #3064 from ThomasWaldmann/rate-limit-faq-fix-1.0

Simplified rate limiting wrapper in FAQ (1.0-maint)
TW 7 years ago
parent
commit
afbd7e373c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      docs/faq.rst

+ 2 - 2
docs/faq.rst

@@ -443,10 +443,10 @@ bandwidth limiting 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. ::