13 lines
163 B
Bash
13 lines
163 B
Bash
|
#!/bin/bash
|
||
|
#
|
||
|
# rsync wrapper that retries a few times on failure
|
||
|
#
|
||
|
|
||
|
for i in $(seq 1 5); do
|
||
|
(
|
||
|
set -x
|
||
|
rsync "$@"
|
||
|
) && exit 0
|
||
|
echo Retry "$i"...
|
||
|
done
|