Trigger Shadow Folder update

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
thniels
Posts: 6
Joined: Tue Mar 12, 2013 3:04 am

Trigger Shadow Folder update

Post by thniels » Wed Jan 06, 2016 1:43 am

I know shadow folders have always only updated when content is touched but is it possible to trigger an update through the API or some other mean? I really would like the shadow folder to be the authoritative version outside the Vault. We can do that by restricting permissions I know, but can it be done?
- Thomas Nielsen

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Trigger Shadow Folder update

Post by Beth » Thu Jan 07, 2016 2:11 pm

There isn't a way currently to have shadow folders update without an action happening.

The best way to keep them up to day is to use Synchronized instead of Optimized when setting it up. That way, when an action happens all files are checked. Then make sure no user except for the user Vault runs under has rights to write to the shadow folder to prevent changes being make outside of Vault.

If you still need Vault to run it's check periodically, you could add a dummy file to the folder being shadowed. Then write a script to hit the Vault Command-line client to check out the file, edit it, and check it in. The script can be scheduled on a machine using the Task Scheduler.
Beth Kieler
SourceGear Technical Support

Post Reply