# Move /storage folder to cloud (aws s3)

**URL:** <https://discourse.getcockpit.com/t/move-storage-folder-to-cloud-aws-s3/1239>\
**Category:** Support\
**Created:** [February 28, 2020, 6:18pm UTC](https://discourse.getcockpit.com/t/move-storage-folder-to-cloud-aws-s3/1239 "2020-02-28T18:18:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedrosodremm](https://avatars.discourse-cdn.com/v4/letter/p/6bbea6/32.png) [@pedrosodremm](https://discourse.getcockpit.com/u/pedrosodremm)\
**Post date:** [February 28, 2020, 6:18pm UTC](https://discourse.getcockpit.com/t/move-storage-folder-to-cloud-aws-s3/1239/1 "2020-02-28T18:18:52Z")

</div>

Hey there,

is that possible to move the /storage folder to any cloud storage like aws s3?

We are scaling up horizontally our environment and some files created by cockpit keeps only on the instance that user was running, so would be cool if we have all instances with same files.

Cheers

---

<div class="post-metadata">

**Author:** ![pix3l](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@pix3l](https://discourse.getcockpit.com/u/pix3l)\
**Post date:** [February 29, 2020, 10:13am UTC](https://discourse.getcockpit.com/t/move-storage-folder-to-cloud-aws-s3/1239/2 "2020-02-29T10:13:46Z")

</div>

With sshfs it is possible to mount a directory via ssh into you linux machine.  
Let’s say your storage is currently located at /opt/cockpit/storage - then copy your storage folder to the aws s3 and simply mount the folder back to /opt/cockpit/storage using sshfs.

There is even a way to auto-remount in case the remote machine is rebooted.

---

<div class="post-metadata">

**Author:** ![Blistok](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/blistok/32/212_2.png) [@Blistok](https://discourse.getcockpit.com/u/Blistok)\
**Post date:** [March 2, 2020, 9:04pm UTC](https://discourse.getcockpit.com/t/move-storage-folder-to-cloud-aws-s3/1239/3 "2020-03-02T21:04:31Z")

</div>

Also, you might find this addon useful:

> **[agentejo/CloudStorage](https://github.com/agentejo/CloudStorage)**
>
> Cloud storage addon for Cockpit CMS - https://github.com/agentejo/cockpit - agentejo/CloudStorage

---

<div class="post-metadata">

**Author:** ![pedrosodremm](https://avatars.discourse-cdn.com/v4/letter/p/6bbea6/32.png) [@pedrosodremm](https://discourse.getcockpit.com/u/pedrosodremm)\
**Post date:** [March 2, 2020, 9:46pm UTC](https://discourse.getcockpit.com/t/move-storage-folder-to-cloud-aws-s3/1239/4 "2020-03-02T21:46:02Z")

</div>

@ [Blistok](https://discourse.getcockpit.com/u/Blistok) seems this addon only supports assets and thumbnails.

---

<div class="post-metadata">

**Author:** ![Blistok](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/blistok/32/212_2.png) [@Blistok](https://discourse.getcockpit.com/u/Blistok)\
**Post date:** [March 4, 2020, 8:32pm UTC](https://discourse.getcockpit.com/t/move-storage-folder-to-cloud-aws-s3/1239/5 "2020-03-04T20:32:01Z")

</div>

@pedrosodremm Yes. I would love to see full support for complete storage folder as well.  
That would also be an easy solve for Docker based setups. Currently the whole storage folder gets wiped out with container.
