cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to make sure we keep you updated on the ideas that other users have shared here on the Community? Us too! Check them out over here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
1
Ask
2
Reply and help

Smart Sync Sync CLI or AppleScript

Re: Smart Sync Sync CLI or AppleScript

AnthonyMargotta
New member | Level 2

+1 I would also like this!

Re: Smart Sync Sync CLI or AppleScript

rfiorentino
Helpful | Level 6

Yes, I'd appreciate this too. It's a little ridiculous that something simple like this has been asked for rather persistently for the last year or so, and still, nothing definitive has happened. I'm a software developer as well, so if I can offer any help in this, I'd be happy to...but let's start putting actions to words. 🙂

Re: Smart Sync Sync CLI or AppleScript

Greg-DB
Dropboxer

Thanks for the additional feedback!

Re: Smart Sync Sync CLI or AppleScript

soid
Helpful | Level 5

+1, please. It would be useful.

Re: Smart Sync Sync CLI or AppleScript

campmdabt
Explorer | Level 4

+1

We're trying to use this as well. We have some IT setup scripts that need to be accessible via dropbox and are accessed via the system profile in an automated fashion. Since the user owns the dropbox files, the system account doesn't force them to smart sync. Having a way to force a local sync of just one folder would be very useful to us.

Re: Smart Sync Sync CLI or AppleScript

varenc
Helpful | Level 6

@campmdabt  I wanted to do the same thing and was sadly out of luck.

Of course you can cat a file to ensure Dropbox syncs it but that's a bit slow for a large directory.  My solution was to read the first 10 bytes of every file in a folder recursively and in parallel.  This triggers Dropbox to sync the files somewhat efficiently and without forcing you to read the contents of all the files.  Here's the shell-fu to do it:
fd -0 -t file /path/to/sync | gparallel -j 30 -0 'dd if="{}" bs=10 count=1 > /dev/null '

That runs `dd` in 30 parallel threads. Requires the `fd` find alternative and GNU Parallel.  But easy to make work with the standard `find` and `parallel` tools as well. Cheers.

Re: Smart Sync Sync CLI or AppleScript

Ike N.1
Explorer | Level 3

+1

 

Who's talking

Top contributors to this post

  • User avatar
    Ike N.1 Explorer | Level 3
  • User avatar
    varenc Helpful | Level 6
  • User avatar
    campmdabt Explorer | Level 4
  • User avatar
    soid Helpful | Level 5
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?