Score:0

How to make Rsync only allow download but not upload

in flag

I know that i can add in Rsync's config file

read only = no

But when I use the synchronization command on the client, rsync tells me

ERROR: module is read only

If I change the value of read only to “no”, the client will automatically upload files when synchronizing files with the server

So what should I do to allow the client to only download changed files from the server and not allow local files to be uploaded to the server when synchronizing files with the server?

My Server System : CentOS 7

Client System : Windows use cwRsync

jp flag
Doesn't rsync do this by default? It isn't bidirectional.
djdomi avatar
za flag
rsync has also a client server structure, in case a path is writable it may a chance that clients accidentally update the server. if you need to do have write access i would suggest to create share-r and share-rw for easier differencing, by the way he is meaning the rsync:// server itself, not rsync over ssh i guess
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.