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 Rsync 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) and parse the output of this command.
/ data / AMOS_SHARE / CHV_BE / IN_MODIFY, IN_CREATE, IN_DELETE, IN_CLOSE_WRITE, IN_MOVE / data / AMOS / jboss / chv_rsync.sh
#! / 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.
inotifywait / tmp / test_dir -m -r
Comments
Post a Comment