Monitor a file for change and copy

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Monitor a file for change and copy 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.
Aqeel
 
Posts: 2
Joined: Fri May 22, 2015 12:09 pm

Re: Monitor a file for change and copy 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.
Aqeel
 
Posts: 2
Joined: Fri May 22, 2015 12:09 pm

Re: Monitor a file for change and copy 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.
Mr_Noodle
Site Admin
 
Posts: 11867
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support