"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
Clarify logging and docs for --no-traverse incompatibilities - fixes #1059
Nick Craig-Woodc0ad29c06cac
diff --git a/docs/content/docs.md b/docs/content/docs.mdindex 31928320a..57436eb74 100644--- a/docs/content/docs.md+++ b/docs/content/docs.md@@ -722,6 +722,8 @@ This option defaults to `false`.The `--no-traverse` flag controls whether the destination file systemis traversed when using the `copy` or `move` commands.+`--no-traverse` is not compatible with `sync` and will be ignored if+you supply it with `sync`.If you are only copying a small number of files and/or have a largenumber of files on the destination then `--no-traverse` will stopdiff --git a/fs/sync.go b/fs/sync.goindex e2d2bf8d4..2c4b6ea15 100644--- a/fs/sync.go+++ b/fs/sync.go@@ -72,7 +72,7 @@ func newSyncCopyMove(fdst, fsrc Fs, deleteMode DeleteMode, DoMove bool) (*syncCotrackRenamesCh: make(chan Object, Config.Checkers),}if s.noTraverse && s.deleteMode != DeleteModeOff {- Debug(s.fdst, "Ignoring --no-traverse with sync")+ ErrorLog(nil, "Ignoring --no-traverse with sync")s.noTraverse = false}if s.trackRenames {@@ -92,7 +92,7 @@ func newSyncCopyMove(fdst, fsrc Fs, deleteMode DeleteMode, DoMove bool) (*syncCos.deleteMode = DeleteModeAfter}if s.noTraverse {- Debug(s.fdst, "Ignoring --no-traverse with --track-renames")+ ErrorLog(nil, "Ignoring --no-traverse with --track-renames")s.noTraverse = false}}