incrontab rsync

General support questions
Post Reply
BillBux
Posts: 1
Joined: 2023/05/05 09:25:44

incrontab rsync

Post by BillBux » 2023/05/05 09:27:28

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?

BShT
Posts: 561
Joined: 2019/10/09 12:31:40

Re: incrontab rsync

Post by BShT » 2023/05/09 11:54:02

I used lsyncd to do this

Post Reply