Need to see if your shared folder is taking up space on your dropbox šØāš»? Find out how to check here.
Forum Discussion
ChrisGrahamMast
9 years agoHelpful | Level 6
Smart Sync Sync CLI or AppleScript
When I move an "Online only" file into a "Local" folder, the file stays "Online Only", and the folder changes to a "mixed" state. Is there a way with Smart Sync to force anything I move from an "online only" folder to a "Local" folder to changes the state of the file to local?
We're looking for an automated way, via the command line, an applescript, whatever- that forces files to download to a "local" state when a script runs that moves online only files into a local "to do" folder.
30 Replies
Replies have been turned off for this discussion
- rfiorentino6 years agoHelpful | Level 7
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. :)
- Greg-DB6 years ago
Dropbox Community Moderator
Thanks for the additional feedback!
- soid6 years agoHelpful | Level 5
+1, please. It would be useful.
- campmdabt5 years agoExplorer | 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.
- varenc4 years agoHelpful | 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. - Ike N.14 years agoExplorer | Level 3
+1
- anthug3 years agoNew member | Level 2
+1
- cbbb13 years agoNew member | Level 2
++1
- Dylman30002 years agoExplorer | Level 4
+1 This would be so helpful!
- Joebennebennjoe2 years agoNew member | Level 2+1 to this please. I use a piece of software called hazel and Iād love to be able to programmatically allow files to be online only or available offline based on criteria.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!