---
title: "rclone"
description: "Use rclone with EZGH Object Storage."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# rclone

Add a remote to your rclone config with your [access key](/object-storage/access-keys):

```ini title="rclone.conf"
[ezgh]
type = s3
provider = Other
access_key_id = oak_…
secret_access_key = …
endpoint = https://s3.us-west-1.ezghapps.com
region = us-west-1
```

This uses path-style URLs. For virtual-hosted URLs, add `force_path_style = false`.

## Common commands

```sh
rclone mkdir ezgh:my-bucket
rclone copy ./photos ezgh:my-bucket/photos
rclone ls ezgh:my-bucket
rclone sync ./photos ezgh:my-bucket/photos
rclone copy ezgh:my-bucket/photos ./restored
```

`rclone sync` deletes files at the destination that aren't in the source.

Leave `--s3-acl` unset: the only ACL accepted is `private`.

Source: https://docs.ezghcloud.com/object-storage/rclone/index.mdx
