How to print out final stats block only for rclone sync

What is the problem you are having with rclone?

I am running rclone sync in a nightly script and I want to suppress periodic status updates and only show the final stats (number of files transfered/deleted, total elapsed time, etc) when rclone completes. None of --verbose, --quiet, --stats seem to do that. Is it possible?

Run the command 'rclone version' and share the full output of the command.

rclone v1.57.0-DEV

  • os/version: rocky 9.5 (64 bit)
  • os/kernel: 5.14.0-503.21.1.el9_5.x86_64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.17.2
  • go/linking: dynamic
  • go/tags: none

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

B2/Backblaze

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

rclone sync --transfers=32 "$SRC_REPOSITORY" "$RCLONE_REPOSITORY"

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

# rclone config redacted
Usage:
  rclone config [flags]
  rclone config [command]

A log from the command that you were trying to run with the -vv flag

Paste  log here

Add:

--stats-log-level NOTICE --stats 9999h

but

Not sure it will work for your ancient (many years old) rclone version. Probably still the same what it was when Rocky Linux was born:) Surprise that it still works:) I suggest you update it.

Uninstall it as I assume that it is what is provided by your poorly maintained Linux distro and install one directly from rclone website - Install

1 Like

Thank you! It works great, even on that ancient version, which is actually from EPEL 9.

(I'll ask the Fedora/EPEL maintainers if they'd like to update it - Fedora is at 1.68.2.)

Rclone is a single binary file without any dependencies. So it is safe and practical to install it directly from the source and forget distro unmaintained version.

But if it works… then why to bother indeed:)

1 Like

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