diff --git a/share/github-backup-utils/ghe-rsync b/share/github-backup-utils/ghe-rsync index 36a47851..c5083507 100755 --- a/share/github-backup-utils/ghe-rsync +++ b/share/github-backup-utils/ghe-rsync @@ -21,8 +21,8 @@ else fi ignoreout='^(file has vanished: |rsync warning: some files vanished before they could be transferred)' -rsync_version_check=`rsync --version | egrep "version 2.[0-9]*.[0-9]*"` -if [ -z "$rsync_version_check" ]; then +rsync_version_check=`rsync --version | egrep "version 3.[0-9]*.[0-9]*"` +if [ ! -z "$rsync_version_check" ]; then # rsync >= 3.x sends errors to stderr. so, we need to redirect to stdout before the pipe rsync "${parameters[@]}" $GHE_EXTRA_RSYNC_OPTS 2>&1 | (egrep -v "$ignoreout" || true) else