mirror of
https://github.com/borgbackup/borg.git
synced 2026-04-22 14:49:03 -04:00
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 d3533de5f7)
This commit is contained in:
parent
81b058ab35
commit
61f0acd93b
1 changed files with 2 additions and 2 deletions
|
|
@ -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. ::
|
||||
|
|
|
|||
Loading…
Reference in a new issue