"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
rc: disable the metrics server when running `rclone rc`
hiddenmarten7c7606a6cf05
diff --git a/cmd/cmd.go b/cmd/cmd.goindex 8f5f5f093..7e569c80b 100644--- a/cmd/cmd.go+++ b/cmd/cmd.go@@ -429,11 +429,12 @@ func initConfig() {fs.Fatalf(nil, "Failed to start remote control: %v", err)}- // Start the metrics server if configured- _, err = rcserver.MetricsStart(ctx, &rc.Opt)- if err != nil {- fs.Fatalf(nil, "Failed to start metrics server: %v", err)-+ // Start the metrics server if configured and not running the "rc" command+ if os.Args[1] != "rc" {+ _, err = rcserver.MetricsStart(ctx, &rc.Opt)+ if err != nil {+ fs.Fatalf(nil, "Failed to start metrics server: %v", err)+ }}// Setup CPU profiling if desired