I'd like to create a web interface (specifically here I use react) that uses rclone to transfer a user's files from Dropbox/Google Drive/Box to my instance of AWS S3. The way I was thinking about going about that was:
Getting the access token from the user
Sending that token to my Amazon EC2 instance with rclone installed
Somehow feeding it to the appropriate remote (Dropbox vs Google Drive...)
Running a shell command to sync the user's files to the s3 instance using rclone
My question is: is this the right way to do it? Is this even possible? If so, how do I set the access token for a Dropbox remote ( for example ), with a shell command?