I have CentOS 7 with installed and running incrond.
As I understand incrond service can monitor /var/www/html/uploads/ and if a new file is uploaded - then using IN_CREATE we can do something. In my case I'd like to copy this new file to directory /var/www/html/uploads/new/
But when I try to use an incron job
/var/www/html/uploads/ IN_CREATE cp /var/www/html/uploads/new/
I have no a result.
I guess my raw example is wrong but I can't catch how to use INCRON to copy new files from monitoring directory to another location.
Thanks for any hints and ideas to try.