C# code for rclone copy

Thanks Akhil, just making sure I am not solving your entire project.

Here is an example, that should give you a good starting point:

The REST calls are:

POST http://localhost:5572/sync/copy HTTP/1.1
content-type: application/json

{
    "srcFs": "myRemote:mybucket",
    "dstFs": "./testfolder5",
    "_config": { "DryRun": false, "IgnoreTimes": true },
    "_async": true,
    "_group": "myCopy/1"
}

###

POST http://localhost:5572/core/stats HTTP/1.1
content-type: application/json

{
    "group": "myCopy/1"
}

###

POST http://localhost:5572/job/stopgroup HTTP/1.1
content-type: application/json

{
    "group": "myCopy/1"
}

I think you can easily translate them into C# based on the above. Remember to start "rclone rcd --rc-no-auth" first.

Happy coding and good luck! :sweat_smile: