How can I download all my files?


#1

There is no out-of-the-box method to download all files, but it’s possible with Uploadcare Python library. Ucare sync is a part of the library and it can be used for bulk downloading.

Here is an instruction how to use ucare tool:
Python has a number of great tools for isolation, one the best, virtualenv, comes along with pip, a new standard for Python package managing.

install pip (locally or globally) if you don’t have it yet:

  1. $ pip install virtualenv
  2. $ virtualenv pyuploadcare # creates and activates new environment
  3. $ source pyuploadcare/bin/activate
  4. $ pip install pyuploadcare # installs library with all dependencies
  5. $ ucare --help # optional
  6. $ ucare --pub_key demopublickey --secret demoprivatekey sync ./local_uc/${uuid}/${filename} # will sync your remote project with public key demopublickey with local directory local_uc.y local_uc.

By default, ucare sync command returns 100 files maximum. If you need to sync more files, use the limit parameter to specify the number of files to download:

$ ucare --pub_key demopublickey --secret demoprivatekey sync ./local_uc/${uuid}/${filename} --request_limit 1000 --limit 1000

Don’t forget to change demopublickey and demoprivatekey to your public/private keys.