How to make sure rsync sets proper file permissions?

Posted by BetaRide on Server Fault See other posts from Server Fault or by BetaRide
Published on 2012-11-05T09:20:18Z Indexed on 2012/11/05 11:07 UTC
Read the original article Hit count: 305

Filed under:
|
|

I'm transfering data from a synology box to a debian box with rsync.

Unfortunately the permissions of all transfered files are set to rwxrwxrwx on the debian box. I want to make sure this files can be seen by the owning user only. Is there a way to tell the debian box to set the permissions to something like rwx------?

The rsync job is set-up through the DSM GUI. If possible I'd rather avoid hacking the synology box and do something on the command line. This means I'm looking for a way to set the permissions on the server side (debian box). I'm using the latest DSM version (4.1).

© Server Fault or respective owner

Related posts about debian

Related posts about rsync