this post was submitted on 31 Oct 2023
3 points (100.0% liked)

Self-Hosted Main

502 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS
 

Im wanting to replicate the files on my home server to my server at my business and a VPS. Then have it setup in a way where my laptop, iphone, etc... will automatically connect to whichever server is closest or fastest. Clearly the servers would sync amongst themselves so they all 3 stay up to date.

Is this even possible?

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 10 months ago

Look into dns loadbalancing. Closest would be "first to respond" which correlates to latency to server (fastest connection) and maybe load on the server.

[–] [email protected] 1 points 10 months ago

Surely it's possible, but what is the advantage of selecting the closest one? Are your bulk file transfers heavily impacted by a few dozens of milliseconds of latency?

[–] [email protected] 1 points 10 months ago

Unless your vps has unlimited storage I'd be weary of that when it comes to pricing and uploading raw photos or video. It's not like you're working with jpgs here.

Have you looked into a NAS and cloud storage?

[–] [email protected] 1 points 10 months ago

Set the dns server in each location to point to the local clone?

I am considering doing something similar, but for backup, how are you planning on syncronising the shares? I was gonna try syncthing

[–] [email protected] 1 points 10 months ago

Here is the problem you face speaking very generically. If you cache everything on the clients access is fast but storage is an issue. If you cache on the LANs speed is an issue. You can try to store on an internet VPS but storage costs are high. You can cache just the index, “Google Drive” style and download/cache only as needed. This probably works the best because you control it down to the file level and speed is not an issue because you work iff local copies. Otherwise any scenario is going to be up against the bandwidth problem.