Rclone sync, detail is missing for deleted directories

What is the problem you are having with rclone?

Hello there,

I am using 'rclone sync --update' from my Google Drive to my local filesystem.
When a directory is deleted on the local filesystem, it does not appear in the logs detail (INFO level), but the deleted counter is correct.
When the option '--dry-run' is used, the detail is well present.

Is it a bug or I missed something ?

What is your rclone version (output from rclone version)

rclone v1.56.0-DEV

  • os/version: raspbian 10.9
  • os/kernel: 5.10.17-v7l+ (armv7l)
  • os/type: linux
  • os/arch: arm
  • go/version: go1.16.3
  • go/linking: static
  • go/tags: none

Which OS you are using and how many bits (eg Windows 7, 64 bit)

linux/armv7 (32 bits)

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone sync --update --backup-dir "/media/backup" --transfers 20 --stats-file-name-length 0 --delete-before --log-file=/opt/rclone/log/rclone.$(date +%F).log --log-level=INFO "myGoogleDrive:myDir" "/media/myDir"

The rclone config contents with secrets removed.

[myGoogleDrive]
type = drive
client_id = ***
client_secret = ***
scope = drive
token = {"access_token":"***","token_type":"Bearer","refresh_token":"***-***","expiry":"2021-04-22T20:11:05.604442635+02:00"}

A log from the command with the -vv flag

With option --dry-run (no issue) :

2021/04/25 17:34:29 NOTICE: Amandine/Interne/Pictures/.thumbnails: Skipped remove directory as --dry-run is set
...
Transferred:       10.258M / 10.258 MBytes, 100%, 147.291 MBytes/s, ETA 0s
Checks:              1600 / 1600, 100%
Deleted:              665 (files), 1 (dirs)
Transferred:            3 / 3, 100%
Elapsed time:        11.1s

Without option --dry-run (detail is missing, only deleted counter is OK) :

2021/04/25 17:35:48 INFO  : Amandine/Interne/Pictures/.thumbnails/995.jpg: Moved (server-side)
2021/04/25 17:35:48 INFO  : Amandine/Interne/Pictures/.thumbnails/995.jpg: Moved into backup dir
2021/04/25 17:35:48 INFO  : Amandine/Interne/Pictures/.thumbnails/998.jpg: Moved (server-side)
2021/04/25 17:35:48 INFO  : Amandine/Interne/Pictures/.thumbnails/998.jpg: Moved into backup dir
2021/04/25 17:35:48 INFO  : Amandine/Interne/Pictures/.thumbnails/999.jpg: Moved (server-side)
2021/04/25 17:35:48 INFO  : Amandine/Interne/Pictures/.thumbnails/999.jpg: Moved into backup dir
...
Transferred:       10.258M / 10.258 MBytes, 100%, 1.778 MBytes/s, ETA 0s
Checks:              2265 / 2265, 100%
Deleted:              665 (files), 1 (dirs)
Renamed:              665
Transferred:            3 / 3, 100%
Elapsed time:        10.2s

You are correct these currently aren't logged at -v level.

This log needs promoting to fs.Infof

Fancy sending a pull request to fix?

Not sure to know how to pull a request correctly... I opened an issue instead, is that OK ?

That's great thanks.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.