---
title: Read-only URL repository
description: You can use a URL repository to give a cluster read-only access to a shared file system. Since URL repositories are always read-only, they’re a safer...
url: https://www.elastic.co/docs/deploy-manage/tools/snapshot-and-restore/read-only-url-repository
products:
  - Elasticsearch
applies_to:
  - Self-managed Elastic deployments: Generally available
---

# Read-only URL repository
<note>
  This repository type is only available if you run Elasticsearch on your own hardware. If you use Elastic Cloud Hosted, see [Elastic Cloud Hosted repository types](https://www.elastic.co/docs/deploy-manage/tools/snapshot-and-restore/self-managed).
</note>

You can use a URL repository to give a cluster read-only access to a shared file system. Since URL repositories are always read-only, they’re a safer and more convenient alternative to registering a read-only shared filesystem repository.
Use Kibana or the [create snapshot repository API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-create-repository) to register a URL repository.
```json

{
  "type": "url",
  "settings": {
    "url": "file:/mount/backups/my_fs_backup_location"
  }
}
```


## Repository settings

The `url` repository type supports a number of settings to customize how data is stored, which may be specified when creating the repository.
Repository settings cover the snapshot root URL (including supported protocols), HTTP retries and timeouts for remote URLs, compression, throughput limits, and the maximum number of snapshots. Remote `http`, `https`, and `ftp` URLs must be allowed by the [`repositories.url.allowed_urls`](https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/url-repository-settings#repositories-url-allowed) setting.
For a complete list of all read-only URL repository settings, refer to [Read-only URL repository settings](https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/url-repository-settings#repository-url-repository-settings).