# Shadow Copy settings on KopiaUI

**URL:** <https://kopia.discourse.group/t/shadow-copy-settings-on-kopiaui/1974>\
**Category:** General Topics\
**Created:** [April 19, 2023, 5:11pm UTC](https://kopia.discourse.group/t/shadow-copy-settings-on-kopiaui/1974 "2023-04-19T17:11:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ale](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@ale](https://kopia.discourse.group/u/ale)\
**Post date:** [April 19, 2023, 5:11pm UTC](https://kopia.discourse.group/t/shadow-copy-settings-on-kopiaui/1974/1 "2023-04-19T17:11:09Z")

</div>

Hi,  
using the folder-action cmd for KopiaCLI, I was able to set the before/after-folder-actions for Shadow Copy in KopiaUI, in JSON REPRESENTATION I can see the configuration for “beforeFolder” and for “afterFolder”. When I take a snapshot, now in the “task” I read:

10:08:40.220 running action before-folder on C:\Users\Alessandro\Documents policy.ActionCommand{Command:“powershell”, Arguments:string{“-WindowStyle”, “Hidden”, “C:\KOPIA-CMD\before.ps1”}, Script:“”, TimeoutSeconds:300, Mode:“essential”}

But I do not read nothing about the after-folder action, the one that “clean everything up” (from Action guide). Is it normal? If yes, how can I verify that the “shadow copy” operation was successfull?

Thank You,  
Alessandro

---

<div class="post-metadata">

**Author:** ![ale](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@ale](https://kopia.discourse.group/u/ale)\
**Post date:** [April 20, 2023, 7:13am UTC](https://kopia.discourse.group/t/shadow-copy-settings-on-kopiaui/1974/2 "2023-04-20T07:13:21Z")

</div>

Hi,  
I’ve tested with a locked file, and it worked, it was able to snapshot it, in KopiaUI, I’m very happy.  
Changing action-folder string (in the config) in “false” (ie disabling shadow copy event) it gives me the error that “the file was locked” (red triangle).  
My only doubt, as I asked before, is why in task report I do not see anything about the after-folder action…  
Thank You,  
Alessandro

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/kapitainsky/32/535_2.png) [@kapitainsky](https://kopia.discourse.group/u/kapitainsky)\
**Post date:** [May 5, 2023, 6:29am UTC](https://kopia.discourse.group/t/shadow-copy-settings-on-kopiaui/1974/3 "2023-05-05T06:29:36Z")

</div>

why not to run it once with `--log-level debug`? Then you can see all details.
