Rclone trigger script on completion with variables

What is the problem you are having with rclone?

I'd like rclone to trigger a script after rclone completes that has access to a number of values from that session in the script.

For example:

rclone -postscript recordstats.cmd $site $startTime $finishTime $transferMode $successOrError $filesSynced

as well as other $codes that may be useful.

rclone setting equivalent session level environment variables would work just as well. As far as I can tell, rclone mainly reads environment variables?

rclone would provide those values as parameters to the script, which could then use them for whatever useful logging purpose. In my case, I'd be passing it to a an internal REST API to record the transfer process.

I see there's a command that can be run after each transfer; that's too granular.

I see there's a reclone completion command, but I don't think this is what I'm looking for?

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

rclone v1.61.1

  • os/version: Microsoft Windows Server 2022 Standard 21H2 (64 bit)
  • os/kernel: 10.0.20348.2527 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.19.4
  • go/linking: static
  • go/tags: cmount

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

FTP, SFTP (ssh), S3

Thanks!

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