Page 1 of 1

Monitor a file for change and copy

PostPosted: Fri May 22, 2015 12:39 pm
by Aqeel
I have a git repo, and there's only one file that I want monitored. When that file changes, basically any text within it, I'd like the file to be copied somewhere else.

I'm monitoring the folder that has the said file.
The rule I'm using is:
If all of the following conditions are met
Full Name is filename.ext
(nested)If any of the following conditions are met for the current file or folder
(nested)Date Last Modified is after Date Last Matched
(nested)Date Last Modified did change
(nested)Size did change
Do the following change to the matched file or folder:
Copy to folder: folder_name (with the option to replace the existing file)

However it's not working, and I'm guessing I'm doing something wrong.

Re: Monitor a file for change and copy

PostPosted: Sat May 23, 2015 3:12 am
by Aqeel
I simplified it to this, since it would do the same thing:

If all of the following conditions are met
Full Name is filename.ext
Date Last Modified is after Date Last Matched

Do the following change to the matched file or folder:
Copy to folder: folder_name (with the option to replace the existing file)

It worked just once, the file got copied, essentially overwritten. When I did another change, the file wasn't copied again.

Re: Monitor a file for change and copy

PostPosted: Mon May 25, 2015 11:27 am
by Mr_Noodle
Go through the stickied troubleshooting guide when it doesn't happen the second time and report back with the diagnostics from there.