this post was submitted on 02 May 2025
28 points (93.8% liked)

Selfhosted

46594 readers
1088 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.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Hi everyone! I am relatively new to self hosting and I am in the process of repurposing an old desktop computer as an offsite/remote server that I will have at a friends house.

My setup:

  • Local: RPi 4 running openmediavault
  • Remote: HP EliteDesk SFF running TrueNAS SCALE

My plan was to connect the machines using tailscale and use the borg plugin in openmediavault to create a remote server repo and save deduplicating and encrypted backups from the local server to the remote server. However, it seems that in order to do that I need a borg plugin installed on the remote server for which there doesn't seem to be a truenas app for. I know I could probably install it on the truenas server, but from what I have read, a truenas update could wipe the install and configuration.

Thus, I would appreciate any suggestions on making the above possible, or alternative setups that would help me achieve what I am looking for. My requirements are:

  • Openmediavault on the local server
  • Encrypted backups
  • Machines connected via VPN (tailscale was just so easy so I would prefer to continue using that, but I can be convinced otherwise)
all 10 comments
sorted by: hot top controversial new old
[–] koala@programming.dev 4 points 1 day ago (1 children)

The next TrueNAS Scale can do LXC containers using Incus. It's similar to a VM, but more lightweight. You can create a container for any Linux distro and install Borg on that. With previous versions, I googled and found some instructions to run Borg in a container with SSH, or you could use a VM.

Borg also supports dummy SSH targets, that TrueNAS can provide. Apparently, it's lower performance-

Why the choice of TrueNAS Scale? For just a Borg target, you could run any Linux distribution.

[–] biomechLulu@lemmy.ml 1 points 1 day ago (1 children)

Thanks, I like the idea of running it in a container, I'll have to look into that.

That is a good question, haha. I wanted to try something other than openmediavault that had a GUI, was designed for NAS, and protects against disk failure (specifically with raidz). However, I think openmediavault actually supports zfs now which might be easier given that I am limited to openmediavault on my local Rpi 4 server.

[–] koala@programming.dev 3 points 17 hours ago

I was going to mention ZFS, but I suspect Raspberries are too weak for ZFS?

If you can use ZFS in both sides, send/receive is the bomb. (I use it for my backups.) However, I'm not sure how well encryption would work for your purpose. IIRC, last time I looked at it, if you wanted an encrypted replica, the source dataset should be encrypted, which did not make me happy.

I'd love to work on making NASes "great" for non-technical people. I feel it's key. Sending encrypted backups through peers is one of my personal obsessions. It should be possible for people to buy two NAS, then set up encrypted backups over the Internet with a simple procedure. I wish TrueNAS Scale enabled that- right now it's the closest thing that exists, I think.

[–] NarrativeBear@lemmy.world 2 points 1 day ago* (last edited 1 day ago) (1 children)

If both servers are running TrueNAS (scale or core) the best way to backup a TrueNAS system to another is by using zfs replication.

https://www.truenas.com/docs/solutions/optimizations/disasterrecovery/

Video to get you started. https://www.youtube.com/watch?v=9gKZOAL7yeE

You could also do the following.

  1. Setup site2site VPN connection of your choosing. IPSEC maybe.

  2. Temporally do the setup of the secondary TrueNAS at Site 1, unless you are sure your Site 2 is good.

  3. Configure the second TrueNAS to Pull data from the primary unit. FYI, pull configuration uses it's own login credentials is a higher level of security.

  4. Migrate the second TrueNas unit to the site 2. This way you aren't diagnosing both the Pull config and VPN settings at the same time.

[–] biomechLulu@lemmy.ml 2 points 1 day ago (1 children)

Thanks but I'm limited to openmediavault on my Rpi locally. I wanted to try something a little more powerful like truenas to get more experience different linux-based systems. But given that I currently don't have any major plans for the remote server other than storing backups I may just put a distro that I can install borg on like others have suggested.

[–] NarrativeBear@lemmy.world 1 points 2 hours ago

No worries, also just to let you know. I have a TrueNAS and a unraid server.

The TrueNAS server has a Unraid samba share mounted. Within TrueNAS you setup a pull task where it copies files from your remote system to keep the directory in sync. Any changes on my unraid samba share are backed up to my TrueNAS share on a predetermined schedule.

You might want to look into the pull task on your TrueNAS which will be a lot easier then trying to push files from your OpenMediavault.

[–] dataprolet@lemmy.dbzer0.com 1 points 1 day ago (1 children)

Maybe you can create an NFS share on your remote system and mount it on your local system, then create a Borg repo there as usual.

[–] biomechLulu@lemmy.ml 1 points 1 day ago (1 children)

Thanks, I'll have to look into that. I've only really worked with SMB shares before.