CLI Syncing Subfolders


For CLI command is there a way to set sync to include subfolders and items similar to right click? I’m using a parsing method with cli that does it per item, but… it’s much much much slower than right click - sync - include sub folders and items. I’m guessthis has something to do with doing stuff in parallel.

Any solutions?


Hi @arvin,
You can use some basic scripting to perform a recursive sync: How can I force a recursive download with the CLI?

I also have a fork of the CLI that implements a recursive sync function:


Hi Tony - The reason I ask is actually not because of trouble recursing. I’m getting the inside folders fine - but rather for speed. I tried to assign them as jobs, but as far as I can tell they’re still syncing one file at a time.

Currently if I do a right click sync for a folder of about 50 items takes about 1 minute. On the other hand a recursive sync takes me about 3 - 4. Do the recursive methods help in terms of speed? Thanks a ton for getting back to me on a weekend Tony :smiley:


Hi @arvin,
With the method I have in my CLI fork it is sequential, so it will not perform concurrent downloads on its own. The sync engine can perform concurrent downloads with the CLI as the interface, but it amounts to just making multiple requests at once.

Which OS are you scripting on?


Hi Tony - sorry Iwe had a web site launch and got a bit packed. What you’re saying makes sense. I’ve tried some of this but with no success - basically doing concurrent calls to sync. I’m currently using powershell with the executable cli - not python based. I tried running it both as a job and workflow and had no success but I may be just unfamiliar with how to properly execute it.

Thank you for the help.