Calling rclone from another program

I'm interested in calling rclone from another process.

My question is, what would be the best way to determine what happened during the process?

I think for simple success or failure, I can use the exit code. If I need more details, I thought of maybe using a JSON log.

IMO probably the most natural way of interacting with rclone from another program would be remote control interface. You can use it to trigger commands (jobs) and query their status (you get easy to process JSON responses).

yes, i agree, simple.

with python, i use

  1. easy to check the exit code
  2. if you encrypt the rclone config file, can pass the password using environment variables or as input.
  3. can capture stdout and stderr.

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