Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Unraid Server to Server Backups

Featured Replies

One thing I think is missing - Unless I missed it while reading, is...  I would LOVE a way to have the data encrypted at the far end automatically..  In otherwords, I've got a friend with an Unraid server, and we'd both like to be the offsite backup for each other, but I think we'd want on-disk encryption at each other's remote sites.  Is there something on UnRaid that would let this happen yet?  I've never seen this option..

It doesn't really seem like a safe solution.
you connect to your backup with full access, in case of ransomware or hack you are done.

What I think is better is create a docker with ssh and Rsync.
Mount folders that you want to backup read-only to the docker.

Use a DDNS instead of IP
Running the connection over Wireguard.
Let the Backup server make the connection and the backup, close the connection after making the backup.

Set up the backup server in such a way that it can only be written once and cannot be deleted / modified.
Perhaps a Snapshot on the backup server as extra security.

And never make one server accessible through another, if you get hacked or hit with ransomware you have 1 big clusterf*ck

On 10/11/2020 at 11:04 AM, 172pilot said:

One thing I think is missing - Unless I missed it while reading, is...  I would LOVE a way to have the data encrypted at the far end automatically..  In otherwords, I've got a friend with an Unraid server, and we'd both like to be the offsite backup for each other, but I think we'd want on-disk encryption at each other's remote sites.  Is there something on UnRaid that would let this happen yet?  I've never seen this option..

Are you thinking of using something different from LUKS?  LUKS is how Unraid naturally provides disk encryption.

  • 2 weeks later...
On 10/19/2020 at 9:26 AM, spx404 said:

Are you thinking of using something different from LUKS?  LUKS is how Unraid naturally provides disk encryption.

Interesting - I wasn't aware of LUKS..  I'll have to do more reading on it, but my impression so far is that it is for security on the volume, but once mounted, it's available to anyone (root).  Since I'm talking about streaming backup files to a remote UnRaid that I dont own, I'd want to encrypt the data before it leaves, rather than rely on an encryption that is managed by the remote system.   Maybe LUKS has a mode to do this..  I haven't read much yet, and will do so.  Thanks for pointing out this functionality I didn't know about!

 

On 11/1/2020 at 9:52 AM, 172pilot said:

Interesting - I wasn't aware of LUKS..  I'll have to do more reading on it, but my impression so far is that it is for security on the volume, but once mounted, it's available to anyone (root).  Since I'm talking about streaming backup files to a remote UnRaid that I dont own, I'd want to encrypt the data before it leaves, rather than rely on an encryption that is managed by the remote system.   Maybe LUKS has a mode to do this..  I haven't read much yet, and will do so.  Thanks for pointing out this functionality I didn't know about!

 

Ahh okay.

 

I believe, LUKS encrypts the entire drive, so on each boot you have to enter a password to unlock the drive before any shares or data become visible.  So I don't think that is what you want.  Well, maybe you do but LUKS isn't what you are looking for.

 

I'm no expert and am not sure what the best procedure or way to do what you want is BUUUUTTTTTTT..... I think what I would do is something like this.

 

From Windows 10 access the share with subfolders/files that you want to encrypt ---> right click and click properties on the folder/file and you should be presented with an option for encryption.  Encrypt the folder or file, then use rsync to copy over the encrypted folder/file to the other server.  I would not do this to a shared folder.  I would only do this to a subfolder or file.

 

I'm sure linux/macos have similar methods to Windows for encrypting a specific folder/file.  There are probably plugins that will allow for encrypting and decrypting mounted shares "on the fly" but unfortunately that isn't an area of familiarity for me.  Hopefully at a minimum, I've given you enough bread crumbs to figure something out.

Edited by spx404

  • 3 months later...

Hello there

I have a local server and backup server in another site.

I follow this tutorial

worked well so far.

Last week, my backup server was off for several days (power supply problem).

The backup server is now on. And the sync no longer works with this error in the script logs :

rsync: connection unexpectedly closed (0 bytes received so far) [sender]

rsync error: unexplained error (code 255) at io.c(228) [sender=3.2.3]

 

Thanks in advance  @SpencerJ

Edited by thymon

  • 2 months later...

The link appears to be broken

  • 5 months later...

That's weird, Spencer's link does not work for me either but the link that works for me looks the same. 🤪

Edit : while Spencer's text seems to be to .../blog/... it really links to .../news/...

On 3/4/2021 at 2:51 AM, thymon said:

Hello there

I have a local server and backup server in another site.

I follow this tutorial

worked well so far.

Last week, my backup server was off for several days (power supply problem).

The backup server is now on. And the sync no longer works with this error in the script logs :

rsync: connection unexpectedly closed (0 bytes received so far) [sender]

rsync error: unexplained error (code 255) at io.c(228) [sender=3.2.3]

 

Thanks in advance

@thymon Did you ever get this working?

 

Just a guess but perhaps the keys in /boot/config/.ssh did not get copied over during boot up on your remote system.  Double check the "go" script.

Edited by spxlabs

On 12/16/2021 at 5:04 PM, spxlabs said:

@thymon Did you ever get this working?

 

Just a guess but perhaps the keys in /boot/config/.ssh did not get copied over during boot up on your remote system.  Double check the "go" script.

Hello, as I don't have access to my router, maybe zerotier may help like this there is no need to transfer keys or port forwarding. I hope it helps.

Edited by Howard Callender
Misspelled word

  • 4 weeks later...
  • 2 years later...

If I try to run the user script, is ask me for a root password (just as in the terminal when setting up the ssh copy 

For example:

Example 2

This command copies files from SiteB to SiteA, both have matching share names

     rsync -avz -e "ssh -i /root/.ssh/siteA-rsync-key" [email protected]:/mnt/user/homework/isos/ /mnt/user/homework/isos/

 

this requires me to type in a root password (from my main server)

I did NOT use a password while setting up site A

Setting up Site A

Let's start by opening an Unraid Terminal window. In the top right corner of the Unraid WebUI press the Icon that looks like this >_

Now, we need to execute a few commands.

First, we need to generate a public/private key pair to allow an SSH connection to work without a password and manual intervention. To do this simply do the following command on Site A.

     ssh-keygen -t rsa -b 2048 -f /root/.ssh/siteA-rsync-key

You will be prompted to “Enter a Passphrase”. Hit the ‘Enter’ key twice. Deep breath.

 

Should I use a password?

 

On 9/2/2024 at 11:51 AM, TallMan206 said:

Should I use a password?

You can also follow this where everything is described step by step:

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.