# Can I trigger synchronization manually?

**URL:** https://forum.syncthing.net/t/can-i-trigger-synchronization-manually/22316
**Category:** Development
**Created:** [June 22, 2024, 9:28am UTC](https://forum.syncthing.net/t/can-i-trigger-synchronization-manually/22316 "2024-06-22T09:28:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![darkhandz](https://forum.syncthing.net/user_avatar/forum.syncthing.net/darkhandz/32/16838_2.png) [@darkhandz](https://forum.syncthing.net/u/darkhandz)
#### Post date: [June 22, 2024, 9:28am UTC](https://forum.syncthing.net/t/can-i-trigger-synchronization-manually/22316/1 "2024-06-22T09:28:08Z")

</div>

I have a somewhat unusual requirement and would like to ask if Syncthing can meet it. I understand that Syncthing can monitor the file system for changes and initiate synchronization accordingly, or perform periodic scans to detect changes and trigger synchronization. However, both methods are somewhat slow for my needs. I’m looking to add an additional mechanism to actively trigger synchronization based on these existing methods. For instance, if I edit file F using software X on machine A and execute a script upon saving in X, I want to use this script to notify Syncthing and immediately synchronize file F to machine B.

Is there an API available to accomplish this?

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [June 22, 2024, 10:47am UTC](https://forum.syncthing.net/t/can-i-trigger-synchronization-manually/22316/2 "2024-06-22T10:47:47Z")

</div>

Sure, you can trigger a scan from the API.

---

<div class="post-metadata">

### Author: ![acolomb](https://forum.syncthing.net/user_avatar/forum.syncthing.net/acolomb/32/11343_2.png) [@acolomb](https://forum.syncthing.net/u/acolomb)
#### Post date: [June 23, 2024, 8:32am UTC](https://forum.syncthing.net/t/can-i-trigger-synchronization-manually/22316/3 "2024-06-23T08:32:08Z")

</div>

[https://docs.syncthing.net/rest/db-scan-post.html](https://docs.syncthing.net/rest/db-scan-post.html)

---

<div class="post-metadata">

### Author: ![darkhandz](https://forum.syncthing.net/user_avatar/forum.syncthing.net/darkhandz/32/16838_2.png) [@darkhandz](https://forum.syncthing.net/u/darkhandz)
#### Post date: [July 6, 2024, 3:46pm UTC](https://forum.syncthing.net/t/can-i-trigger-synchronization-manually/22316/4 "2024-07-06T15:46:56Z")

</div>

I had tried, and it works as expected. 😀
