# Syntax to use max\_snapshot\_bytes\_per\_sec in snapshot api

**URL:** <https://discuss.elastic.co/t/syntax-to-use-max-snapshot-bytes-per-sec-in-snapshot-api/259778>\
**Category:** Elasticsearch\
**Created:** [December 29, 2020, 8:11am UTC](https://discuss.elastic.co/t/syntax-to-use-max-snapshot-bytes-per-sec-in-snapshot-api/259778 "2020-12-29T08:11:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhina](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dhina/32/68859_2.png) [@dhina](https://discuss.elastic.co/u/dhina)\
**Post date:** [December 29, 2020, 8:11am UTC](https://discuss.elastic.co/t/syntax-to-use-max-snapshot-bytes-per-sec-in-snapshot-api/259778/1 "2020-12-29T08:11:42Z")

</div>

I want to use the `max_snapshot_bytes_per_sec` to throttle the speed of the Elastic search snapshot. Checked the documentation, could not find an example on how to specify the limit.

Which one of the below value is correct to limit the speed to 10mb.

{"type":"fs","settings":{"location":"/var/ESBackup/snapshot\_test","max\_restore\_bytes\_per\_sec":"10m"}}

or

{"type":"fs","settings":{"location":"/var/ESBackup/snapshot\_test","max\_restore\_bytes\_per\_sec":"10mb"}}

or should the value be specified in bytes as the name indicates?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 26, 2021, 8:11am UTC](https://discuss.elastic.co/t/syntax-to-use-max-snapshot-bytes-per-sec-in-snapshot-api/259778/2 "2021-01-26T08:11:57Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
