Rsync error code 3 happens in the process of making files transfer from one server to another using rsync.
Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to fix rsync command related errors.
In this context, we shall look into the main causes of this error and steps to get rid of it.
What triggers Rsync error code 3 ?
Outlined below are some of the reasons why this error occurs;
i. The currently logged in user is present in a non-existent folder.
ii. The destination directory or folder was already deleted.
iii. The rsync command is being executed in an incorrect server.
iv. The user doesn't have proper permission to read and write to the source and destination directories.
v. The SELinux is enabled.
How to fix Rsync error code 3 ?
To resolve this error, apply the following tips;
1. Make sure to change the folder that is existing. Also, alter the rsync paths if they are not absolute.
2. If the destination directory is not present then create one.
3. Ensure that the rsync command is correct with respect to the server in which the command is being executed.
4. Also, ensure that the user has the necessary permissions to read or write to the source and destination directories.
5. Disable the SELinux and then perform the rsync.