We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

ChrisGrahamMast's avatar
ChrisGrahamMast
Helpful | Level 6
8 years ago

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.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    Dropbox unfortunately doesn't provide any sort of programmatic interface for managing these Smart Sync settings, but I'll pass this along as a feature request.
    • warpedgeoid's avatar
      warpedgeoid
      Helpful | Level 5

      Consider this a +1 to the request for some sort of command-line interface for controlling SmartSync.

       

      Not only is Dropbox's GUI client lacking MANY sorely needed features (I assume using usability as an excuse, like everyone else), but the lack of decent CLI tools means that I can't even work around these missing features using my own scripts. I know that the majority of DB users are probably syncing a handful of Word documents, a few images, and maybe a video or two, but a few of us are using DB to store hundreds of thousands of files in complex directory structures. It'd be great to run a few scripts to mark files as cloud-only instead of having to go through and do it using the Finder/Explorer integration.

    • AlmightyOatmeal's avatar
      AlmightyOatmeal
      Helpful | Level 6
      +1

      I would really like this feature!

      I'm running into a problem with the OS X Finder extension so I don't have control over what paths can take advantage of Smart Sync (aside from new directories). Being able to control this from the API would be INVALUABLE to me.
  • mashdar's avatar
    mashdar
    New member | Level 2

    +1 for smart sync CLI. This would allow us as a company to customize our user syncing along exactly the metrics we care about.

    I've felt a bit hamstrung by the lack of tuning Dropbox provides, although it's gotten a bit better lately. If I had a smart sync CLI, we could tune the settings exactly how we want. (E.g., no local .rvt files on tablets.) This would be a big quality of life improvement for our firm.

    • danFLP's avatar
      danFLP
      New member | Level 2

      Have Dropbox managed to move this request forward?  I’d also find it very useful to automate the process of changing the status of older files into an online status using a script or a built in feature to the GUI interface

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        danFLP No, unfortunately I don't have any news on this request. We appreciate the feedback, and I've sent it along to the team.

    • rfiorentino's avatar
      rfiorentino
      Helpful | 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-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        Thanks for the additional feedback!

  • StevenTammen's avatar
    StevenTammen
    New member | Level 2

    +1 for me too.

     

    Several other companies using an "only sync to local when you need to" model (e.g., ODrive) have a setting that enables you to have files get automatically set from local to cloud if they have not been accessed within a timeout period (a week, say).

     

    Even more than this would be excellent though, particularly if there was CLI integration. Making all files of extension X online only, or all files matching a particular regular expression, all files in folder Y with Z characteristics, etc. would make this feature significantly more useful. Having to manually set files back to online only obviates most of the advantages, in my opinion. You have to constantly remember to manually remove local files you no longer need rapid access too.

     

    This strikes me as a problem that would easy to automate, and for that reason I think it would be worth implementing sooner rather than later.

    • Greg-DB's avatar
      Greg-DB
      Icon for Dropbox Staff rankDropbox Staff
      Thanks for the detailed feedback!
      • tekacs's avatar
        tekacs
        Explorer | Level 4

        +1 to this request - using developer tooling (e.g. code editors, git, search, etc.) is made very difficult by being unable to manipulate Smart Sync programmatically.

        Really all that would be required would be the ability to switch files/folders to/from Online Only, whether through a command line tool, extended attributes or otherwise.

        Thanks!

  • Joebennebennjoe's avatar
    Joebennebennjoe
    New 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

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 12 months ago
325 Following

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 or Facebook.

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!