# About xbcloud get file storage location

**URL:** <https://forums.percona.com/t/about-xbcloud-get-file-storage-location/25841>\
**Category:** Database Monitoring and Management\
**Tags:** percona\
**Created:** [October 11, 2023, 10:29am UTC](https://forums.percona.com/t/about-xbcloud-get-file-storage-location/25841 "2023-10-11T10:29:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pmmChobo](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@pmmChobo](https://forums.percona.com/u/pmmChobo)\
**Post date:** [October 11, 2023, 10:29am UTC](https://forums.percona.com/t/about-xbcloud-get-file-storage-location/25841/1 "2023-10-11T10:29:56Z")

</div>

I executed the following command

xbcloud get --storage=s3 --s3-endpoint=[endpoint-address] --s3-access-key=[access-key] --s3-secret-key=[secret-key] --s3-bucket=[bucket-name] --s3-region=us-east-1 --parallel=10 [backup-file-name] /tmp \> download.log

and the result is following image

 ![스크린샷 2023-10-11 192712](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/3/3c6ed32c81971b780c3f8d44dce47cde73fb8db6.png)

but i don`t know where is downloaded files, The files are not even in /tmp

---

<div class="post-metadata">

**Author:** ![Marcelo\_Altmann](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/marcelo_altmann/32/11299_2.png) [@Marcelo\_Altmann](https://forums.percona.com/u/Marcelo_Altmann)\
**Post date:** [October 11, 2023, 10:51am UTC](https://forums.percona.com/t/about-xbcloud-get-file-storage-location/25841/2 "2023-10-11T10:51:31Z")

</div>

Hi @pmmChobo .

xbcloud prints the content of the chunk to STDOUT. You are redirecting STDOUT to download.log, meaning the chunks are been saved to the flat file download.log.

You should use xbcloud in conjunction with xbstream to reassembly the chunks into proper files:

```auto
xbcloud ... | xbstream -x -C /path/to/save/the/files

```

---

<div class="post-metadata">

**Author:** ![pmmChobo](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@pmmChobo](https://forums.percona.com/u/pmmChobo)\
**Post date:** [October 12, 2023, 1:57am UTC](https://forums.percona.com/t/about-xbcloud-get-file-storage-location/25841/3 "2023-10-12T01:57:55Z")

</div>

thank you for your reply

I executed the following command

```auto
xbcloud get --storage=s3 --s3-endpoint=[value] --s3-access-key=[value] --s3-secret-key=[value] --s3-bucket=[value] --s3-region=us-east-1 --parallel=10 [backup-file-name] > /tmp/download.log | xbstream -x -C /tmp --parallel=10

```

but nothing in /tmp

---

<div class="post-metadata">

**Author:** ![pmmChobo](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@pmmChobo](https://forums.percona.com/u/pmmChobo)\
**Post date:** [October 12, 2023, 1:58am UTC](https://forums.percona.com/t/about-xbcloud-get-file-storage-location/25841/4 "2023-10-12T01:58:40Z")

</div>

only download.log in /tmp

---

<div class="post-metadata">

**Author:** ![pmmChobo](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@pmmChobo](https://forums.percona.com/u/pmmChobo)\
**Post date:** [October 12, 2023, 4:09am UTC](https://forums.percona.com/t/about-xbcloud-get-file-storage-location/25841/5 "2023-10-12T04:09:20Z")

</div>

when I executed the following command

```auto
xbcloud get --storage=s3 --s3-endpoint=[value] --s3-access-key=[value]--s3-secret-key=[value]--s3-bucket=[value]--s3-region=us-east-1 --parallel=10 [backup-file-name] | xbstream restore -x -C --directory=/tmp/backup-restore262779438 --parallel=10

```

i excepted \> download.log

and the result is

 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/7/7bc515ef565ec17798c021941ca390ed5927c96c.png)

---

<div class="post-metadata">

**Author:** ![pmmChobo](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@pmmChobo](https://forums.percona.com/u/pmmChobo)\
**Post date:** [October 12, 2023, 4:39am UTC](https://forums.percona.com/t/about-xbcloud-get-file-storage-location/25841/6 "2023-10-12T04:39:14Z")

</div>

I executed the following command

```auto
xbcloud get --storage=s3 --s3-endpoint=[value] --s3-access-key=[value]--s3-secret-key=[value]--s3-bucket=[value]--s3-region=us-east-1 --parallel=10 [backup-file-name] | xbstream restore -x -C /tmp/restore --parallel=10

```

this command is solution!  
i found it!  
thank you so much  
@Marcelo_Altmann
