docs: add comment how to reduce rclone binary size (#8000)
Some checks failed
Docker beta build / Build image job (push) Has been cancelled

See #7998
This commit is contained in:
kapitainsky 2024-08-10 18:52:32 +02:00 committed by GitHub
parent e334366345
commit bfa3278f30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -448,6 +448,11 @@ which corresponds to `~/go/bin/rclone` by default).
go install github.com/rclone/rclone@latest 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} ## Ansible installation {#ansible}
This can be done with [Stefan Weichinger's ansible This can be done with [Stefan Weichinger's ansible