incron - Sub directory not getting copied to remote server using Rsync Linux -


The

I tried to copy the directories and files in a remote Linux machine using Risinik and Inkrantab.

This copy is working properly files on the remote server

Incrontab

  / data / AMOS_SHARE / CHV_BE / IN_MODIFY, IN_CREATE, IN_DELETE, IN_CLOSE_WRITE, IN_MOVE / data / AMOS / jboss / chv_rsync.sh   

Rsync

  #! / Bin / bash chmod-R 775 / data / AMOS_SHARE / CHV_BE rsync -avuzh / data / AMOS_SHARE / CHV_BE / jboss@xx.xx.xx.xx: / data / AMOS_SHARE / CHV_BE /   < p> I have made in  / data some files / AMOS_SHARE / CHV_BE /  folder it worked fine and I made this folder, it's working fine. But whenever I create files in a sub folder, it does not work.  

Please help me.

incrond recursively monitoring has not been implemented yet, so do not monitor sub-directory of events Is performed. You can do this by adding additional information to sub-directories, but I have recommended to use any other device:

In addition to this you can use the ionotifywait tool (example)

  inotifywait / tmp / test_dir -m -r   

and parse the output of this command.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -