Re: Detect file change

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Alan Hoffmeister wrote:
> Hello everyone!
> 
> How can I detect if a folder have changed (sync logic) than run a script 
> if it's true?
> I found this script over the net, but I think it's such complicated for 
> that simple thing...
> 

You could just run rsync periodically without checking anything.  It will only 
transfer files that have changed and will walk the whole tree doing the 
comparisons with the -R or -a options.

-- 
   Les Mikesell
    lesmikesell@xxxxxxxxx

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux