Jump to content

unraid rsync target


betawax

Recommended Posts

I've been reading sometime about rsync (http://lime-technology.com/forum/index.php?topic=36001.0, http://lime-technology.com/forum/index.php?topic=27904.0, http://danynativel.com/blog/2013/10/21/enabling-rsync-daemon-on-unraid/,'>http://danynativel.com/blog/2013/10/21/enabling-rsync-daemon-on-unraid/, ....) but I can't seem to find how I can enable the server.

 

I've seen the help from Weebotech on different pages, with referrals to certain files. See also the instructions: http://lime-technology.com/forum/index.php?topic=13432.msg127520#msg127520

 

"Here's an example of my /etc/rsyncd.conf file

it gets put in place from /boot/custom/etc/rsyncd.conf to /etc/rsyncd.conf "

 

on my flashdrive I see config; logs, ... folders, but no /etc/ or boot folder. when I telnet to my unraid box, i even can't enter those folders.

 

So I would be grateful if there would be a clear manual or a guide, more clear than "

Put this in your inetd.conf", because I don't know Linux commands...

 

Same on this link: http://danynativel.com/blog/2013/10/21/enabling-rsync-daemon-on-unraid/

 

I'm willing too, but I don't know what the exact commands are.

 

I only have the share I want to connect to, the rest I'll see later.

 

uid            = root

gid            = root

use chroot      = no

max connections = 4

pid file        = /var/run/rsyncd.pid

timeout        = 600

 

[share]

    path = /mnt/user/Share

    comment = Backups

    read only = FALSE

 

[boot]

    path = /boot

    comment = /boot files

    read only = FALSE

 

[mnt]

    path = /mnt

    comment = /mnt files

    read only = FALSE

 

Thx in advance for any help. Damn for having that noob feeling again :(

Link to comment

...

on my flashdrive I see config; logs, ... folders, but no /etc/ or boot folder. when I telnet to my unraid box, i even can't enter those folders...

You are probably just missing a few basic facts and if you had those the rest of the things you have been reading might be enough to make it all make sense.

 

Your flash drive itself is the /boot folder. So the config folder that you can see is actually at /boot/config when you telnet.

 

/etc is actually in RAM and you can't even see it over the network. In fact, almost all of the usual linux folders are actually in RAM, and they are unpacked completely fresh on each boot, so any changes made to them will be wiped out on the next boot. That is why you have to copy stuff from /boot to /etc when it boots up by putting code in the go file.

 

The only folders that aren't in RAM and will survive a reboot are /boot (the flash drive as already mentioned) and /mnt, the mount point for the disks and user shares.

 

Now go back and reread that other stuff and see if it makes more sense, then come back with more questions if needed. Setting this up with Weebotech's directions is one of the first things I did when I started using unRAID.

Link to comment

Thx a lot, it suddenly makes a lot more sense.

 

I altered the scripts, and rebooted.

 

Anyhow, I still did *something* wrong. There must be something wrong with the copy of the rsyncd.conf tot the etc-file in the RAM. I can't connect, neither from my synology as from my computer with deltacopy.

 

In my log file I see:

 

Jan 4 08:19:36 Tower rsyncd[3022]: rsync: unable to open config file "/etc/rsyncd.conf": No such file or directory (2)

Jan 4 08:19:36 Tower rsyncd[3022]: rsync error: syntax or usage error (code 1) at clientserver.c(1057) [Receiver=3.1.0]

 

What I did: (see also http://lime-technology.com/forum/index.php?topic=2165.0)

1. this file made on flash: \\192.168.1.11\flash\custom\etc\rsycnd.conf

uid            = root

gid            = root

use chroot      = no

max connections = 4

pid file        = /var/run/rsyncd.pid

timeout        = 600

 

[share]

    path = /mnt/user/Share

    comment = Backups

    read only = FALSE

 

[boot]

    path = /boot

    comment = /boot files

    read only = FALSE

 

[mnt]

    path = /mnt

    comment = /mnt files

    read only = FALSE

 

2. this file made on \\192.168.1.11\flash\custom\etc\rc.d\S20-init.rsyncd

#!/bin/bash

 

if ! grep ^rsync /etc/inetd.conf > /dev/null ; then

cat <<-EOF >> /etc/inetd.conf

rsync  stream  tcp    nowait  root    /usr/sbin/tcpd  /usr/bin/rsync --daemon

EOF

read PID < /var/run/inetd.pid

kill -1 ${PID}

fi

 

3. modify go script on \\192.168.1.11\flash\config\go

#!/bin/bash

# Start the Management Utility

/usr/local/sbin/emhttp &

/boot/custom/etc/rc.d/S20-init.rsyncd

 

Any pointers?

Link to comment

In the meantime i checked my /etc location with putty, and in fact there is no rsyncd.conf, so something went wrong with the copy.

 

is it because of the ampersand "&" in the go script?

 

edit: i altered the 2 step

 

2. this file made on \\192.168.1.11\flash\custom\etc\rc.d\S20-init.rsyncd

#!/bin/bash

 

if ! grep ^rsync /etc/inetd.conf > /dev/null ; then

cat <<-EOF >> /etc/inetd.conf

rsync  stream  tcp    nowait  root    /usr/sbin/tcpd  /usr/bin/rsync --daemon

EOF

read PID < /var/run/inetd.pid

kill -1 ${PID}

fi

cp /boot/custom/etc/rsyncd.conf /etc/rsyncd.conf

 

Still nothing, I can't even see it in the log file anymore...

Link to comment

Archived

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

×
×
  • Create New...