P
P
Pavel Belyaev2019-01-10 04:50:53
linux
Pavel Belyaev, 2019-01-10 04:50:53

Rsync with ignore rights?

Hello, is it possible to somehow force rsync to consider the file in which the content has changed, and not the access rights (owner ...) as modified.
The fact is that there is synchronization of files from one server to another, and of course the site works under the user who does not have access to ssh, and the user under which the site runs on different servers is different.
I want to write a script that merges the changed files from the main server, then applies the specified rights to the files in the local folder...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Sh, 2019-01-10
@Deq56

probably something like this
rsync -avz --no-perms --no-owner --no-group

V
vlarkanov, 2019-01-10
@vlarkanov

Read about lsyncd. It is based on rsync and gives a very wide range of options for copying files - you can very precisely set the conditions for copying.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question