Trigger Shadow Folder update
Moderator: SourceGear
Trigger Shadow Folder update
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
Re: Trigger Shadow Folder update
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.
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
SourceGear Technical Support