From c5c0e841564eff8d66d0b93fde9cf6515abd7819 Mon Sep 17 00:00:00 2001 From: Gervais Blaise Date: Fri, 9 Jan 2026 10:42:36 +0100 Subject: [PATCH] feat(doc): Add s3cmd sync sample Add sample command to copy a whole directory to a Cellar bucket using the s3cmd sync command --- content/doc/addons/cellar.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/content/doc/addons/cellar.md b/content/doc/addons/cellar.md index e80ef5d97..205f2cfd7 100644 --- a/content/doc/addons/cellar.md +++ b/content/doc/addons/cellar.md @@ -76,6 +76,17 @@ The bucket is now be available at `https://.cellar-c2.services.clev `ws-*` and `cf*` commands aren't available with a Cellar add-on. {{< /callout >}} +#### Synchronize directory + +To copy a whole directory to a bucket use the `sync` command : +```bash +`s3cmd -c s3cfg.txt --host-bucket=cellar-c2-services.clever-cloud.com sync [--dry-run] ${source-dir} s3://${bucket-name}/ [--acl-public]` +``` +Where : + + `--dry-run` show a preview without changing anything. + + `--acl-public` allow public access on the copied files. + + ### With AWS CLI You can use the official [AWS cli](https://aws.amazon.com/cli/) with Cellar. Configure the `aws_access_key_id`, `aws_secret_access_key` and endpoint.