# Reana-client download all files

**URL:** <https://forum.reana.io/t/reana-client-download-all-files/70>\
**Category:** Uncategorized\
**Created:** [23 June 2023 10:03 UTC](https://forum.reana.io/t/reana-client-download-all-files/70 "2023-06-23T10:03:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eballabe](https://forum.reana.io/letter_avatar_proxy/v4/letter/e/8491ac/32.png) [@eballabe](https://forum.reana.io/u/eballabe)\
**Post date:** [23 June 2023 10:03 UTC](https://forum.reana.io/t/reana-client-download-all-files/70/1 "2023-06-23T10:03:51Z")

</div>

See the issue in  
[https://atlas-talk.web.cern.ch/t/download-files-from-reana-client/740/2](https://atlas-talk.web.cern.ch/t/download-files-from-reana-client/740/2)

---

<div class="post-metadata">

**Author:** ![tiborsimko](https://forum.reana.io/user_avatar/forum.reana.io/tiborsimko/32/2_2.png) [@tiborsimko](https://forum.reana.io/u/tiborsimko)\
**Post date:** [26 June 2023 07:00 UTC](https://forum.reana.io/t/reana-client-download-all-files/70/2 "2023-06-26T07:00:08Z")

</div>

Hi @eballabe

I cannot access the ATLAS talk web site, so I cannot see exactly what the issue at hand… But assuming that you would like to download all files from the workspace, there are several techniques that can help:

1. Download all files from a certain directory (and its subdirectories) of the workspace via a zip tarball, by using:

2. If the files are too big to get zipped and send efficiently in one single tarball, you can write a shell loop such as:

This is just an example to customise, e.g. you could grep only the filenames that you are really interested in transferring, etc.

Does this help to address the problem?

---

<div class="post-metadata">

**Author:** ![eballabe](https://forum.reana.io/letter_avatar_proxy/v4/letter/e/8491ac/32.png) [@eballabe](https://forum.reana.io/u/eballabe)\
**Post date:** [26 June 2023 08:03 UTC](https://forum.reana.io/t/reana-client-download-all-files/70/3 "2023-06-26T08:03:48Z")

</div>

Hi @tiborsimko

thank you for the reply! Sorry if you couldn’t see the issue. It was about download all files from a workspace, without downloading directory by directory or file by file. If no folder or file is specified, reana-client shall be able to download all files according to [`reana-client` docs](https://reana-client.readthedocs.io/en/latest/#reana-client-download)

```auto
reana-client download # download all output files

```

However in my case it happens that only a file is downloaded. In any case, I can download all files with the proposed solutions, thanks.

---

<div class="post-metadata">

**Author:** ![tiborsimko](https://forum.reana.io/user_avatar/forum.reana.io/tiborsimko/32/2_2.png) [@tiborsimko](https://forum.reana.io/u/tiborsimko)\
**Post date:** [26 June 2023 08:48 UTC](https://forum.reana.io/t/reana-client-download-all-files/70/4 "2023-06-26T08:48:01Z")

</div>

Ah, I see, thanks. The issue is that the `reana-client download` command downloads by default all _output_ files (note the word), i.e. the files that are declared in `reana.yaml` as the workflow outputs, via the `outputs` clause. For example, in [reana-demo-atlas-recast](https://github.com/reanahub/reana-demo-atlas-recast/blob/master/reana.yaml#L14):

```yaml
version: 0.6.0
inputs:
  parameters:
    did: 404958
    xsec_in_pb: 0.00122
    dxaod_file: https://recastwww.web.cern.ch/recastwww/data/reana-recast-demo/mc15_13TeV.123456.cap_recast_demo_signal_one.root
  directories:
    - workflow
workflow:
  type: yadage
  file: workflow/workflow.yml
outputs:
  files:
    - statanalysis/fitresults/limit.png

```

Only `limit.png` is declared as a workflow output, so it would be only this file that will be downloaded when one does `reana-client download` without any argument.

(We do the inputs/temporary-files/outputs distinction so as not to unnecessarily download any big temporary files once the workflow finishes.)

If you enrich your `reana.yaml` and list all the interesting outputs in that clause, then this would also solve the issue.
