I m new to Rclone, trying to use rclone with apache nifi for sftp/cloud(s3/blob/gcp) to cloud files transfer.
Tried rclone RC mode with command line commands like below and it works fine -
rclone rc sync/copy srcFs=LocalSFTP:newdirectory dstFs=LocalSFTP:target10jan123 recursive=true --rc-addr 127.0.0.1:5572 _async=true
and able to see status with below end point with postman. http://127.0.0.1:5572/job/status?jobid=31
Now i want to submit this sync/copy operation through http post (like status check above) instead of command line.
I could not find real example for this, can some one help me with http post example for this?
also wondering if i can point different .conf file than default one for this copy operation
(for non rc mode i can use --config option, similar option i m looking for RC with http api mode)
@Ole - Thank you so much, forum link helped me out.
Able to submit the job over http post.
But still could not find way to point non default .config file while using RC mode (http mainly)
@Ole that's correct, check rclone rc options/get for the correct form for the config, then pass it into your POST as part of your json body , e.g "_config":{"CheckSum": true. "DryRun": true}. Generally they are CamelCase forms of the associated command line flags.
Combined with the axios post above that would be:
let rclone_options = { srcFs: "source_path", dstFs: "destination_path", "_config":{"CheckSum": true. "DryRun": true}};