Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

sync,copy,move: make sure we output a debug log on start of transfer

Nick Craig-Wood2b8af4d23f7d
diff --git a/fs/sync/sync.go b/fs/sync/sync.go
index 95a49ab2f..f3da4adf3 100644
--- a/fs/sync/sync.go
+++ b/fs/sync/sync.go
@@ -407,6 +407,7 @@ func (s *syncCopyMove) pairRenamer(in *pipe, out *pipe, fraction int, wg *sync.W
src := pair.Src
if !s.tryRename(src) {
// pass on if not renamed
+ fs.Debugf(src, "Need to transfer - No matching file found at Destination")
ok = out.Put(s.ctx, pair)
if !ok {
return
@@ -1026,6 +1027,7 @@ func (s *syncCopyMove) SrcOnly(src fs.DirEntry) (recurse bool) {
}
if !NoNeedTransfer {
// No need to check since doesn't exist
+ fs.Debugf(src, "Need to transfer - File not found at Destination")
ok := s.toBeUploaded.Put(s.ctx, fs.ObjectPair{Src: x, Dst: nil})
if !ok {
return