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

Feature Request: auto download changed files while monitoring #339

Open dauthiatull opened 8 years ago

dauthiatull commented 8 years ago

can the monitor function also auto download changed files when detected?

beeb commented 7 years ago

I would also be interested in this. I don't have enough unix knowledge to know how to use the output of monitor. Maybe an example script could be useful?

trevorjwood commented 7 years ago

Would also be useful to me. Incidentally - I can't get the timeout to work with monitor. Maybe I'm putting the wrong syntax in or something

I've tried ../dropbox_uploader.sh monitor / TIMEOUT ../dropbox_uploader.sh monitor / 1

it comes back and says monitoring "/" for changes and then

FAILED to longpoll (http error): Error in call to API function "files/list_folder/longpoll": request body: could not decode input as JSON

If I can get this to work, then I think the way to get the download to work would be to follow it with

../dropbox_uploader.sh -s download / (just to download new files, or without the -s to download all), then restart the monitor