linux - rsync is overwriting read-only files. How do I prevent this? -
i'm using rsync -avlz
sync files between development server , production server. on production server have config files options specific server (e.g. passwords, port numbers, etc.) , don't want files overwritten when rsync.
however, though files have 444 permissions, still being overwritten. can explain me why happening or point me in direction of how prevent it? seems me setting files read-only prevent rsync updating them.
note: i'd prefer not have exclude files if don't have to. i'd love have server know not allow overwriting of read-only files.
rsync
not care "read-only", since you've told sync permissions well. keep local settings in separate file , include them main configuration.
Comments
Post a Comment