From bfa3278f3058aa9efea30c45ed97fbed601a9d78 Mon Sep 17 00:00:00 2001 From: kapitainsky Date: Sat, 10 Aug 2024 18:52:32 +0200 Subject: [PATCH] docs: add comment how to reduce rclone binary size (#8000) See #7998 --- docs/content/install.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/content/install.md b/docs/content/install.md index 8ba7ee9cb..d5be63cba 100644 --- a/docs/content/install.md +++ b/docs/content/install.md @@ -448,6 +448,11 @@ which corresponds to `~/go/bin/rclone` by default). go install github.com/rclone/rclone@latest ``` +In some situations, rclone executable size might be too big for deployment +in very restricted environments when all backends with large SDKs are included. +To limit binary size unused backends can be commented out in `backends/all/all.go` +and unused commands in `cmd/all/all.go` before building with `go build` or `make` + ## Ansible installation {#ansible} This can be done with [Stefan Weichinger's ansible