Article 547M0 incrontab rsync

incrontab rsync

by
kalyan1709
from LinuxQuestions.org on (#547M0)
Hi,

I am trying to rsync a folder to multiple destinations

EX:
1. /data/xyz/abc/ IN_CREATE,IN_DELETE,IN_CLOSE_WRITE /usr/bin/rsync --exclude '*.tmp' -a /data/xyz/abc/ user1@host1:/data/kalyan/

2. /data/xyz/abc/ IN_CREATE,IN_DELETE,IN_CLOSE_WRITE /usr/bin/rsync --exclude '*.tmp' -a /data/xyz/abc/ user1@host2:/data/test/kumar/

Here 1st one is perfectly syncing but the 2nd one never works. Like this I am trying to rsync "/data/xyz/abc/" to multiple servers in multiple locations.
When I run rsync manually(/usr/bin/rsync --exclude '*.tmp' -a /data/xyz/abc/ user1@host2:/data/test/kumar/) it is working with out any errors but in incrontab it won't trigger automatically like #1

Any help please?latest?d=yIl2AUoC8zA latest?i=vKm7hHzaoDM:5C9r1cE6koE:F7zBnMy latest?i=vKm7hHzaoDM:5C9r1cE6koE:V_sGLiP latest?d=qj6IDK7rITs latest?i=vKm7hHzaoDM:5C9r1cE6koE:gIN9vFwvKm7hHzaoDM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments