简体   繁体   中英

Schedule Rscript in a server

Currently, I am scheduling a daily bat from my laptop with TaskScheduler on windows and I would like to do it automatically in a server. Actually, the situation is:

  1. I read some SQLite DB that I have stored in local.
  2. Once I read them I do a webscraping based on some information.
  3. I store this new information in the DB mentioned above. I've read that is possible do it with Amazon EC2 (REF: http://www.louisaslett.com/RStudio_AMI/ ), but it doesn't mention anything related with SQLite local db.

Could you give me some recommendations about how to manage and which tool could be the best approach (Azure, AWS, Google Bigquery)

You could build a Cloud Run task to do this. Then schedule it using cloud scheduler.

https://cloud.google.com/run/docs/triggering/using-scheduler

You can find samples how to build a cloud run task in the docs: https://cloud.google.com/run/docs

To write to big query, you can use the bigquery api client libraries: https://cloud.google.com/bigquery/docs/reference/libraries

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM