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.

Automating backup to second unRaid server

Featured Replies

Now that I got my second server up and running, I would like to set up a scheduled back up of certain shares on Tower1 to Tower2.

I think i got down the basics of the syntax for the rsyncd.conf file, and am able to sync Photos share (for now) manually but when it comes to

automating all this I am in quite over my head, so I'd really appreciate some guidance on this.

 

Here is what I am doing and questions I have:

 

1. Following JoeL's examples, I set up rsyncd.conf file on Tower2:

uid            = root

gid            = root

use chroot      = no

max connections = 4

pid file        = /var/run/rsyncd.pid

timeout        = 600

log file        = /var/log/rsyncd.log

 

[Photos]

    path = /mnt/user/media/Backups/Photos

    comment = /mnt files

    read only = FALSE

 

 

2. Automatically invoke rsync daemon process on Tower2 every time the server is rebooted.

So, manually the daemon is invoked with this command:

rsync --daemon --config=/boot/config/rsyncd.conf

 

Should it be added to the go script? It would make sense, but I am curious

why I don't see this command in the 'go' script in the example from this thread - http://lime-technology.com/forum/index.php?topic=3417.0

 

3. To start the rsync process based on some schedule, I understand I need to

add something similar to this cron job to 'go' script on Tower1:

 

#set up rsync between the two servers every other day at 3 am - will be commented out for Server2 go script

echo "0 3 2-6,8-13,15-20,21-31 * * /usr/bin/rsync rsync://Server2/disk1/*" >>/tmp/crontab

echo "0 3 2-6,8-13,15-20,21-31 * * /usr/bin/rsync rsync://Server2/disk2/*" >>/tmp/crontab

echo "0 3 2-6,8-13,15-20,21-31 * * /usr/bin/rsync rsync://Server2/disk3/*" >>/tmp/crontab

 

Say if in my case I want to build upon this manual command to do daily backups:

cd /mnt

rsync -avrH user/media/Photos tower2::Photos

 

What should my entry be? I am trying to make sense of the example above but I am not sure I get all the syntax yet.

 

Anything else I am missing?

 

 

 

  • 9 months later...

I realize this post above is almost 1 year old but I would love to know how to get the cron job to work.  I have a similar setup now and want to make sure I can get the cron job setup each time I reboot!

 

Thanks,

 

Neil

 

I third this one. I am nearing the steps of wanting to backup my unraid to an off-site unraid that I will be hosting at another location and I would like to setup an auto backup...

 

::starts some popcorn::

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.