andreafabrizi / Dropbox-Uploader

Dropbox Uploader is a BASH script which can be used to upload, download, list or delete files from Dropbox, an online file sharing, synchronization and backup service.
https://www.andreafabrizi.it/2016/01/01/Dropbox-Uploader/
GNU General Public License v3.0
6.57k stars 1.08k forks source link

How to use multiple Apps for uploading data using script #458

Open testaccountsnt opened 5 years ago

testaccountsnt commented 5 years ago

I have multiple Apps in my dropbox account. Every account has different access token. When I run this script first time it asks for access token and saves it in home directory. Now I am able to upload files into the App using this script.

Now I want to upload data in my second App but I can not upload into it until I delete the Access token file and put access token for this app.

Every time I need to delete access token file to upload files in respective app. Is there any way so I can pass access token file with script as a argument, I will create multiple token files and I can use all for all my apps without deleting any.

Please help.

testaccountsnt commented 5 years ago

I got the solution. There is -f parameter to use multiple configuration files. Example : ./dropbox_uploader.sh -f ~/.dropbox_uploader list ./dropbox_uploader.sh -f ~/.dropbox_uploader2 list

Thank you for making this program.