I'm using rsync (via OpenSSH) to backup a server, but for some reasons it
exits with a code 20. It doesn't print any error-texts or warnings, and it
seems to backup correctly - but the non-zero status concerns me...
I use a RedHat 7 with all updates installed.
Could it be because the server holds more than 65536 files??? If I exclude
some more dirs (for instance /usr), so that fewer files are copied, it
exits correctly with a 0 status!
I've included my backup-script below.
(BTW: everything worked under RedHat 6.2)
OPTIONS='-a --force --delete -e /usr/bin/ssh'
rsync $OPTIONS \
--exclude-from $EXCLUDEFILE \
rsync exits 20 when interrupted with SIGINT, or SIGUSR1. Neither
appears to apply in your case, which is odd.
I was having similar problems using rsych with ssh - I updated to version
2.4.6-1 direct from rsync and things seem to be working fine for now - I'm
running RH 7 with updates.
ok, marking as resolved in the current release. Please re-open if it persists
with the 2.4.6 package from 7.1 (it should run fine on 7.0).
FWIW, we haven't seen this in testing here.