Return message on success - B2 Cloud Storage

Is there any returned data on successful transfer command? As far as I can tell, the only information logged is the last -v output

Transferred: 4.364 GBytes (2.665 MBytes/s)
Errors: 0
Checks: 0
Transferred: 2616
Elapsed time: 27m57s

Transferred: 5.827 MBytes (57.102 kBytes/s)
Errors: 0
Checks: 185272
Transferred: 10
Elapsed time: 1m44.4s

Those messages are all well and good, but the only way I am certain the action was completed is by seeing that the Elapsed Time does not fall directly on a 1m interval (I use --stats=1m, so regular outputs fall on or around minute markers). Is there a way to log “Successfully completed tranfer” if all data from source has been successfully copied/synced/crypted/etc to the destination on a per command basis?

1 Like

rclone will return an exit code which you can check while scripting.

1 Like