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.

Best way to backup unraid to OMV - RSYNC SSH Solution!

Featured Replies

Hello again! Made a different topic especially for my Rsync problems.

 

Server 1: Unraid

Server 2: OMV

 

Use case:

Backup al essential data nightly from the Unraid server to the OMV server.

 

What works:

rsync -avz -e ssh [email protected]:/mnt/cache/home /

 

So what is the best way to go about configuring the rest?

 

Unraid is running the rsync daemon, I guess..

So adding a task within OMV should do the trick? Well unfortunately not. I think it has something to do with the SSH certificates, which I generated on both machines. But i have no idea where to put them or how to use it in general.

 

So can anyone point me in the right direction?

 

Thanks in advance!

 

 

  • Author

Google is your friend. I used different source to come up with this, please add is you think something has to be different...

 

Before you go ahead with this, it asumes rsync deamons are runnning on both machines, which in the case of unraid and OMV they are.

Second, it assumes you set up SSH on unraid. I can;t really remember how I did this though  :-X Search for SSH.. If someone knows the steps for enabling SSH please enlighten me.

 

 

1. Test Rsync with password:

rsync -avz -e ssh /home/localmachine/ [email protected]:/backup/remotemachine/ (NOTE: forwardslash in source means copy al CONTENTS of directory, without the directory itself.)

When password is enabled, should ask for it here.

2. ssh-keygen -> when asked for pass just press enter twice

3. The keys are generated now, next step is:

ssh-copy-id  [email protected]

When it asks if you want to continue connecting type yes followed by enter

After a second it asks you for the remote server password, give it..

Should say: 'Number of key(s) added: 1"

4. Type: ssh [email protected] followed by enter..

This time it should not ask for a password..

5. test rsync again: rsync -avz -e ssh /home/localmachine/ [email protected]:/backup/remotemachine/

Should not ask you for a password.. we are getting somewhere :-)

6. Now, you want to run the task every day for example. Cron manages this. Crontab -e uses vi, which i can;t work with (idiot?). So give this command:

export VISUAL=nano; crontab -e

Should use nano now.

Add this line:

10 1 * * * rsync -avz -e ssh /home/localmachine/ [email protected]:/backup/remotemachine/

And it should run 10 past 1 in the night.

To make the cron entry's persisten create a .cron file in your plugin folder!: /boot/config/plugins

 

Still to find out: how te make ssh persistant. Will update on this  :P

 

I tested the rsync commands which work fine for me, I did not test if cron will work this night. Will update.

 

  • Author

Back to the drawing board.

 

After restart... cron jobs deleted, so looks like the command:

export VISUAL=nano; crontab -e

And adding entry's are NOT persistent, anybody some thoughts about this?

 

After restart I have to copy (via the ssh-copy-id command) the ssh key to autohorty file on OMV as well, any thoughts on this?

 

Thanks again for any  help..

 

 

Back to the drawing board.

 

After restart... cron jobs deleted, so looks like the command:

export VISUAL=nano; crontab -e

And adding entry's are NOT persistent, anybody some thoughts about this?

 

After restart I have to copy (via the ssh-copy-id command) the ssh key to autohorty file on OMV as well, any thoughts on this?

 

Thanks again for any  help..

Unraid is extracted from the archive on the USB drive into RAM every time it is booted. Any file locations not in /boot (flash drive) or /mnt/disk??(plus some other /mnt paths)  are in RAM, and changes are lost on reboot. The /mnt location is only fully populated when the array starts, so best practice is to use the /boot locations to store modifications that you wish to make persistent, and script all changes needed so they can be called at boot time. Prior best practice was to use the go file on the usb drive to call those scripts, I'm not sure what the current recommendation is, but limetech is trying to discourage go file modifications, as they can interfere with automatic upgrades. I'd use the go file method for now, but keep in mind you may have to redo things in the future.

You can create a new folder within the plugins folder on the flash and toss a file in there called xXxX.cron.  dynamix will add the cron entry in there every boot

 

Sent from my LG-D852 using Tapatalk

 

 

  • 1 month later...
  • Author

Back again!

 

Putting a cron file into the plugin folder works like a charm.. only thing left is to make the ssh-id persistant.. any thoughts on this?

 

  • 3 years later...

Old topic, but has anyone figured out how to make it persistent?

Archived

This topic is now archived and is closed to further replies.

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.