List of standard rsync exit codes
This is a list of rsync exit codes (rsync status codes / rsync error codes / rsync exit values).
Exit code 127
If you're seeing exit code 127 after running rsync (i.e. in a script), it can mean you don't even have rsync binary installed on your system.
Exit code 255
If you're seeing exit code 255 after running rsync, it can mean rsync just passed exit code from a command it used to connect - typically SSH.
This would be essentially the same failure as SSH connecting:
Exit code on Linux / UNIX
To check rsync exit code on Linux / UNIX (or in fact, any other command), run this one just after rsync command:
Exit code on Windows
- to check rsync exit code on Windows, run this one just after rsync command:
- NB: The IF ERRORLEVEL n test succeeds if the error level is n or more. So - to capture just exit code 1:
- in PowerShell, you can also use:
Error code 11 on Windows
Error code 11 can be confusing when rsync is started as a service on a Windows platform. It can mean that the pid file for rsync already exists in the C:\Program Files\cwRsyncServer folder (or ony other directory where rsync is installed) - although no other info will be given in Windows Event Log. It will become more apparent only if rsync is started as a service from the command line.