Hi,

I have setup mirroring on my two Linux servers using rsync.

On first server I’m using this command
rsync -avzt -e ssh /home/ root@secondserver:/home/

In second server, this
rsync -avzt -e ssh /home/ root@firstserver:/home/

The problem is when I’m updating a file in second server and run command on first server rsync replaces old file overwritten by first server to second server.

What do I have to do to stop updating new file?

You might try using the inotify enabled version of rsync.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.