run only if files have changed

No more questions - please go to http://www.syncovery.com/forum instead

Moderator: SuperFlexible Administrators

run only if files have changed

Postby heybabeitsme on Thu Jan 26, 2012 3:20 pm

anyway to run only if files have changed since last run? I wonder if smart tracking can somehow be used this way?

The scenario is that i run a job every hour into a new folder. But i only need that folder created if something has changed in the source since last run.
heybabeitsme
 
Posts: 8
Joined: Wed Jan 25, 2012 12:46 pm

Re: run only if files have changed

Postby superflexible on Thu Jan 26, 2012 3:43 pm

This is possible if you create an extra job that mirrors to the same destination folder every hour. This extra job is used to determine if files have changed.

The extra job will trigger your main job only if files were copied.

So the hourly schedule would be given to this extra job. The job that you currently have would not get a schedule at all.

On the "Job" tab sheet of this extra job, you can click on "Execute command or script before/after". As an "after" command, type

++RUN PROFILE the profile name of your main job

The ++ causes the command to be executed only if something was done.
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm

Re: run only if files have changed

Postby heybabeitsme on Thu Jan 26, 2012 6:49 pm

ok i think i follow. But where you said mirror the destination i guess you meant mirror the source? since the destination doesnt exist until the hour job runs.
So i mirror the source to a permanent folder. It will only update if something has changed, so that job will only be changing a few files while the original job will create a whole new folder at that time. Ok, a small overhead but i see how it works. Thanks.
heybabeitsme
 
Posts: 8
Joined: Wed Jan 25, 2012 12:46 pm

Re: run only if files have changed

Postby superflexible on Fri Jan 27, 2012 12:42 am

I wrote "mirror to the same destination". Yes mirror the source, to the destination.
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm


Return to Windows Support * new forum: www.syncovery.com/forum

cron