Hello linux gurus,
I've just setup a multi-terrabyte, opensolaris, zfs box, and I'm backing up the *entire* contents of some old IDE disks to my new raidz. I'm issuing these backups from a client computer to the opensolaris server using rsync.
However, I've run into a bit of a problem. Every time rsync comes across a directory which doesn't have execute permissions for "other," it issues a "Permission denied" error:
# rsync -rvz <from> <to>
sending incremental file list
rsync: recv_generator: failed to stat "<to>/<dir>/<file>": Permission denied (13)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1040) [sender=3.0.5]
...where <dir> is the directory without execute permissions for "other" (specifically, they're 770).
I understand _why_ this is occurring. rsync cannot copy the files inside of the directory because it doesn't have permission to _access_ that directories' contents. What I _don't_ understand is why this error is occurring when I execute the rsync command as root!
The only solutions I found on google were to give the directory execute permissions for the "other" group, but I'd like to keep the backup 100% the same as the original--without changing the permissions of the files.
Is there a way to allow rsync to recursively copy all directories and their file contents'--including those directories without execute permissions for "other"--(as root) while also retaining all permissions of the source files and directories?