Exit After Completion

Good Day,

I currently have a proxy set up with rclone that copies files from my SFTP server to a SharePopint Document Library. The copy runs fine however it does not exit on completion.

I would like to run this as a daily cron but would like to have the job exit when it is run. Is this possible?

Rclone already exit on completion.

What does your crontab look like?

The cron is

rclone copy -v --contimeout=3m --min-age 5m --checkers 1 --ignore-existing --transfers 2 --tpslimit 2 --user-agent "ISV|rclone|rclone/v1.42" --log-file=/var/log/rclone.log incontact_us: sharepoint:

There is quite a lot of files, perhaps it just takes a very long time to process them, however it rant the entire weekend and did not exit and I assumed it was complete. I throttled to get around the sharepoint throttling.

I see this repeated all the time at what i assume is the end of the copy:

2020/01/13 11:56:20 INFO :
Transferred: 352.212M / 352.212 MBytes, 100%, 1.438 MBytes/s, ETA 0s
Errors: 0
Checks: 76678 / 76678, 100%
Transferred: 81 / 81, 100%
Elapsed time: 4m4.9s

That looks like it has finished - I wonder why rclone hasn't stopped.

When you think it has finished can you kill -QUIT the rclone process and post the backtrace rclone generates - that should give a clue!

Thanks