mirror of https://github.com/borgbackup/borg.git
Merge pull request #3061 from Self-Perfection/patch-1
Simplified rate limiting wrapper in FAQ
This commit is contained in:
commit
ea1dc4d822
|
@ -624,10 +624,10 @@ can be accomplished with pipeviewer_:
|
||||||
|
|
||||||
Create a wrapper script: /usr/local/bin/pv-wrapper ::
|
Create a wrapper script: /usr/local/bin/pv-wrapper ::
|
||||||
|
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
## -q, --quiet do not output any transfer information at all
|
## -q, --quiet do not output any transfer information at all
|
||||||
## -L, --rate-limit RATE limit transfer to RATE bytes per second
|
## -L, --rate-limit RATE limit transfer to RATE bytes per second
|
||||||
export RATE=307200
|
RATE=307200
|
||||||
pv -q -L $RATE | "$@"
|
pv -q -L $RATE | "$@"
|
||||||
|
|
||||||
Add BORG_RSH environment variable to use pipeviewer wrapper script with ssh. ::
|
Add BORG_RSH environment variable to use pipeviewer wrapper script with ssh. ::
|
||||||
|
|
Loading…
Reference in New Issue