# How to separate uploaded files to another server

**URL:** https://meta.discourse.org/t/how-to-separate-uploaded-files-to-another-server/320994
**Category:** Self-hosting
**Created:** [August 10, 2024, 2:56am UTC](https://meta.discourse.org/t/how-to-separate-uploaded-files-to-another-server/320994 "2024-08-10T02:56:23Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Yt.w](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yt.w/32/348367_2.png) [@Yt.w](https://meta.discourse.org/u/Yt.w)
#### Post date: [August 10, 2024, 2:56am UTC](https://meta.discourse.org/t/how-to-separate-uploaded-files-to-another-server/320994/1 "2024-08-10T02:56:23Z")

</div>

I have 2 VPS, and I would like set 1 VPS only save upload files. and another 1 only run discourse program.

Is there any way to do it?

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [August 10, 2024, 3:06am UTC](https://meta.discourse.org/t/how-to-separate-uploaded-files-to-another-server/320994/2 "2024-08-10T03:06:25Z")

</div>

Hello 👋 Seems you looking for [Configure an S3 compatible object storage provider for uploads](https://meta.discourse.org/t/configure-an-s3-compatible-object-storage-provider-for-uploads/148916)

---

<div class="post-metadata">

### Author: ![Yt.w](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yt.w/32/348367_2.png) [@Yt.w](https://meta.discourse.org/u/Yt.w)
#### Post date: [August 10, 2024, 3:38am UTC](https://meta.discourse.org/t/how-to-separate-uploaded-files-to-another-server/320994/3 "2024-08-10T03:38:21Z")

</div>

Hello, I understand it’s possible to save files to S3.  
but how about if I want same files to another linux server?

---

<div class="post-metadata">

### Author: ![wal](https://avatars.discourse-cdn.com/v4/letter/w/d6d6ee/32.png) [@wal](https://meta.discourse.org/u/wal)
#### Post date: [August 10, 2024, 5:50am UTC](https://meta.discourse.org/t/how-to-separate-uploaded-files-to-another-server/320994/4 "2024-08-10T05:50:35Z")

</div>

Well to be clear, that’s not exactly the same question as what’s posed in the OP

If you simply want to share files between two Linux servers, there are a lot of options, which may or may not be appropriate for usage with Discourse running on separate VPS. Here’s a couple

- NFS network filesystem, SMB share
- SSHFS ssh filesystem
- FUSE filesystem driver to mount your S3 as a local filesystem (or just use S3 directly)

In general I would just use S3 directly. You do not need to “run a second VPS just for storage” if you’re using S3

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 10, 2024, 7:59am UTC](https://meta.discourse.org/t/how-to-separate-uploaded-files-to-another-server/320994/5 "2024-08-10T07:59:04Z")

</div>

Not really. It would make more sense to have a load balancer and use both systems, but you’d still need assets smh uploads on s3.
