# Move processed from one S3 bucket to other bucket

**URL:** <https://discuss.elastic.co/t/move-processed-from-one-s3-bucket-to-other-bucket/204199>\
**Category:** Logstash\
**Created:** [October 18, 2019, 9:53am UTC](https://discuss.elastic.co/t/move-processed-from-one-s3-bucket-to-other-bucket/204199 "2019-10-18T09:53:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pami](https://avatars.discourse-cdn.com/v4/letter/p/b38774/32.png) [@pami](https://discuss.elastic.co/u/pami)\
**Post date:** [October 18, 2019, 9:53am UTC](https://discuss.elastic.co/t/move-processed-from-one-s3-bucket-to-other-bucket/204199/1 "2019-10-18T09:53:35Z")

</div>

can anyone can suggest how to move the processed files from one bucket to other.

scenario:  
Bucket 1  
2019/10/

will S3 plugin move the processed files in the same structure ?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [October 18, 2019, 12:02pm UTC](https://discuss.elastic.co/t/move-processed-from-one-s3-bucket-to-other-bucket/204199/2 "2019-10-18T12:02:52Z")

</div>

> [@pami](#):
>
> can anyone can suggest how to move the processed files from one bucket to other

I believe that is what the backup\_to\_bucket option is for.

---

<div class="post-metadata">

**Author:** ![pami](https://avatars.discourse-cdn.com/v4/letter/p/b38774/32.png) [@pami](https://discuss.elastic.co/u/pami)\
**Post date:** [October 19, 2019, 7:07pm UTC](https://discuss.elastic.co/t/move-processed-from-one-s3-bucket-to-other-bucket/204199/3 "2019-10-19T19:07:52Z")

</div>

@Badger  
will backup\_to\_bucket keep the same directory structure in the new bucket.

I have logs in original bucket like

elb/2019/10/  
elb/2019/11

Thanks

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [October 19, 2019, 7:20pm UTC](https://discuss.elastic.co/t/move-processed-from-one-s3-bucket-to-other-bucket/204199/4 "2019-10-19T19:20:59Z")

</div>

I think it keeps the structure, but you would have to test it to be sure.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 16, 2019, 7:21pm UTC](https://discuss.elastic.co/t/move-processed-from-one-s3-bucket-to-other-bucket/204199/5 "2019-11-16T19:21:04Z")

</div>

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