# Difference between folder-action and snapshot-root-action

**URL:** <https://kopia.discourse.group/t/difference-between-folder-action-and-snapshot-root-action/1591>\
**Category:** Support\
**Created:** [December 1, 2022, 11:22am UTC](https://kopia.discourse.group/t/difference-between-folder-action-and-snapshot-root-action/1591 "2022-12-01T11:22:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![felihommen](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/felihommen/32/606_2.png) [@felihommen](https://kopia.discourse.group/u/felihommen)\
**Post date:** [December 1, 2022, 11:22am UTC](https://kopia.discourse.group/t/difference-between-folder-action-and-snapshot-root-action/1591/1 "2022-12-01T11:22:54Z")

</div>

May be because I’m not English fluent speaker, but can’t see the difference between folder-action and snapshot-root-action. Both configured commands seem to run (before or after) every snapshot.  
What’s the difference?

---

<div class="post-metadata">

**Author:** ![2-3-5-7](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/2-3-5-7/32/684_2.png) [@2-3-5-7](https://kopia.discourse.group/u/2-3-5-7)\
**Post date:** [April 28, 2023, 7:32am UTC](https://kopia.discourse.group/t/difference-between-folder-action-and-snapshot-root-action/1591/2 "2023-04-28T07:32:27Z")

</div>

[from document actions](https://kopia.io/docs/advanced/actions/)

> `--before-folder-action` and `--after-folder-action` are not inherited and must be set explicitly on target folders, while `--before-snapshot-root-action` and `--after-snapshot-root-action` are inherited from their parents and can be set at global, host, user or directory level

---

<div class="post-metadata">

**Author:** ![tylerdurden4285](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/tylerdurden4285/32/1346_2.png) [@tylerdurden4285](https://kopia.discourse.group/u/tylerdurden4285)\
**Post date:** [January 8, 2025, 5:31am UTC](https://kopia.discourse.group/t/difference-between-folder-action-and-snapshot-root-action/1591/3 "2025-01-08T05:31:12Z")

</div>

Hi, sorry I still don’t understand this. could you provide an example showing how they differ if you don’t mind?

I have a ntfy account that I use to trigger a notification to myself when something I’m running fails, I am hoping I can use this with kopia ui using “after folder” or “after snapshot” commands (just using curl command) but I am confused about the difference between the two and also how to trigger only on error. That’s what led me here to you.
