"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
drive: add --drive-server-side-across-configs
Nick Craig-Woodaa81957586ea
diff --git a/backend/drive/drive.go b/backend/drive/drive.goindex 91781171c..63d71aa9b 100644--- a/backend/drive/drive.go+++ b/backend/drive/drive.go@@ -382,6 +382,16 @@ will download it anyway.`,Default: defaultBurst,Help: "Number of API calls to allow without sleeping.",Advanced: true,+ }, {+ Name: "server_side_across_configs",+ Default: false,+ Help: `Allow server side operations (eg copy) to work across different drive configs.++This can be useful if you wish to do a server side copy between two+different Google drives. Note that this isn't enabled by default+because it isn't easy to tell if it will work beween any two+configurations.`,+ Advanced: true,}},})@@ -427,6 +437,7 @@ type Options struct {V2DownloadMinSize fs.SizeSuffix `config:"v2_download_min_size"`PacerMinSleep fs.Duration `config:"pacer_min_sleep"`PacerBurst int `config:"pacer_burst"`+ ServerSideAcrossConfigs bool `config:"server_side_across_configs"`}// Fs represents a remote drive server@@ -924,7 +935,7 @@ func NewFs(name, path string, m configmap.Mapper) (fs.Fs, error) {ReadMimeType: true,WriteMimeType: true,CanHaveEmptyDirectories: true,- ServerSideAcrossConfigs: true,+ ServerSideAcrossConfigs: opt.ServerSideAcrossConfigs,}).Fill(f)// Create a new authorized Drive client.