# Zip folder before download (Dropbox)

**URL:** <https://forum.rclone.org/t/zip-folder-before-download-dropbox/26999>\
**Category:** Feature\
**Created:** [October 15, 2021, 2:39am UTC](https://forum.rclone.org/t/zip-folder-before-download-dropbox/26999 "2021-10-15T02:39:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tommy](https://forum.rclone.org/user_avatar/forum.rclone.org/tommy/32/10507_2.png) [@Tommy](https://forum.rclone.org/u/Tommy)\
**Post date:** [October 15, 2021, 2:39am UTC](https://forum.rclone.org/t/zip-folder-before-download-dropbox/26999/1 "2021-10-15T02:39:34Z")

</div>

Hello,

Dropbox has a download\_zip endpoint that allows to download a folder ziped. Instead rclone copy function downloads all files from a folder one by one. Is there a reason for that ? maybe the download\_zip feature is not safe enough ?  
I have around 200000 files in my dropbox and would like to back it up with rclone, but am afraid that I will quikly reach rate limits.  
Would it be possible to integrate that download\_zip endpoint to batch download the files ?

Thanks in advance and for this great tool !

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [October 15, 2021, 12:46pm UTC](https://forum.rclone.org/t/zip-folder-before-download-dropbox/26999/2 "2021-10-15T12:46:22Z")

</div>

There could be a separate backend command which could do that, say something like this

```
rclone backend downloadzip dropbox:path/to/dir local.zip

```

Would that suit your needs?

---

<div class="post-metadata">

**Author:** ![Tommy](https://forum.rclone.org/user_avatar/forum.rclone.org/tommy/32/10507_2.png) [@Tommy](https://forum.rclone.org/u/Tommy)\
**Post date:** [October 25, 2021, 4:54pm UTC](https://forum.rclone.org/t/zip-folder-before-download-dropbox/26999/3 "2021-10-25T16:54:55Z")

</div>

Sorry for the delay and thanks for answering.  
For now I download files from dropbox with : `rclone copy/sync dropbox:/my_folder /backup/my_folder`.  
I was thinking of something like a --downloadzip flag `rclone copy/sync --downloadzip dropbox:/my_folder /backup/my_folder` but I guess it is better to target the specific dropbox backend so that would be perfect too.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [October 30, 2021, 1:01pm UTC](https://forum.rclone.org/t/zip-folder-before-download-dropbox/26999/4 "2021-10-30T13:01:23Z")

</div>

I wonder how many other backends have a download zip endpoint? I think google drive might?

If there are several it might be worth making an `rclone zip remote:dir /path/to/dir.zip` command which could either download the zip using the API method, or construct the zip using normal rclone stuff.

---

<div class="post-metadata">

**Author:** ![albertony](https://forum.rclone.org/user_avatar/forum.rclone.org/albertony/32/8586_2.png) [@albertony](https://forum.rclone.org/u/albertony)\
**Post date:** [October 30, 2021, 3:14pm UTC](https://forum.rclone.org/t/zip-folder-before-download-dropbox/26999/5 "2021-10-30T15:14:29Z")

</div>

> [@ncw](#):
>
> I wonder how many other backends have a download zip endpoint?

With Jottacloud; if you create a share link on a folder, downloading the link url will give you a zip file.

---

<div class="post-metadata">

**Author:** ![ivandeex](https://forum.rclone.org/user_avatar/forum.rclone.org/ivandeex/32/11183_2.png) [@ivandeex](https://forum.rclone.org/u/ivandeex)\
**Post date:** [October 30, 2021, 6:22pm UTC](https://forum.rclone.org/t/zip-folder-before-download-dropbox/26999/6 "2021-10-30T18:22:28Z")

</div>

The archive function was requested by

> <https://github.com/rclone/rclone/issues/2815>
>
> \#### What is your current rclone version (output from \`rclone version\`)?
> 
> 1.45…
> 
> \#### What problem are you are trying to solve?
> 
> It could be useful to download or upload files as an archive, without having to \_first\_ download or upload the files \_and then\_ create the archive, causing the space usage to be almost doubled potentially.
> 
> In other words, rather than downloading the files and \_then\_ creating a zip or tar.gz archive, then deleting the original downloaded files, it'd be nice to download the files \_as\_ an archive, so that the files don't use so much extra space on disk just to make the archive.
> 
> \#### How do you think rclone should be changed to solve that?
> 
> I could imagine a few ways to do it. Rclone could take a folder or archive file on one end, and spit out the opposite on the other end. For example: \`folder source -\> archive destination\` creates an archive file, and \`archive source -\> folder destination\` extracts it, regardless of backends being used.
> 
> I'm not sure, though, if detecting whether the source or destination is an archive file is trivial.
> 
> So maybe a flag? \`--archive\` or something.
> 
> cf: https://github.com/ncw/rclone/issues/675#issuecomment-444461084
> 
> Thanks so much for your work on rclone!

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [December 30, 2021, 2:22pm UTC](https://forum.rclone.org/t/zip-folder-before-download-dropbox/26999/7 "2021-12-30T14:22:57Z")

</div>

Closed on December 30, 2021, 2:22pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
