While migrating some accounts, I noticed that when Cpanel gets "permission denied" error it skips the file and continues the transfer and it even says 100% success. If I hadn't checked the logs and accounts individually and just relied on the "100% success" message, I would have lost files during the transfer.
Here's an example snippet of the log:
---------------------------
Homedir
Streaming Homedir from source server…
receiving incremental file list
…6 % …
rsync: send_files failed to open "/home/xxx/public_html/file1.php": Permission denied (13)
rsync: send_files failed to open "/home/xxx/public_html/file2.php": Permission denied (13)
rsync: send_files failed to open "/home/xxx/public_html/file3.php": Permission denied (13)
…100 % …
sent 357.26K bytes received 660.11M bytes 5.62M bytes/sec
total size is 658.88M speedup is 1.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1505) [generator=3.0.6]
Homedir
Homedir restored
---------------------------
I believe the solution to this is simply halt the transfer when Cpanel encounters permission denied error.
Here's an example snippet of the log:
---------------------------
Homedir
Streaming Homedir from source server…
receiving incremental file list
…6 % …
rsync: send_files failed to open "/home/xxx/public_html/file1.php": Permission denied (13)
rsync: send_files failed to open "/home/xxx/public_html/file2.php": Permission denied (13)
rsync: send_files failed to open "/home/xxx/public_html/file3.php": Permission denied (13)
…100 % …
sent 357.26K bytes received 660.11M bytes 5.62M bytes/sec
total size is 658.88M speedup is 1.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1505) [generator=3.0.6]
Homedir
Homedir restored
---------------------------
I believe the solution to this is simply halt the transfer when Cpanel encounters permission denied error.