Umask cron/rsync/sh
by RatherLoopy from LinuxQuestions.org on (#561Q8)
I have a cron job that executes a shell script to rsync data from a remote server to a local drive. Even though I've added "umask 002" to /etc/profile and the cron job owner's .bashrc, when rsync writes directories and files, directories get 755 permissions and files get 644.
How can I get rsync to set 775 & 664 for the directories & files it writes?


How can I get rsync to set 775 & 664 for the directories & files it writes?