Page 1 of 1

Rsync

Posted: Fri 25. Jan 2019, 12:55
by Fritzvonundzu
Hallo Zusammen,

ich habe mir die Random Tools installiert um über meine Syn per rsync auf die Zyxel Box zu sichern.

Leider scheint das intallieren der Random Tools nicht auszureichen.

Wer kann mir sagen was ich noch machen muss damit auf der Zyxel Box einen rsync Server läuft.

Re: Rsync

Posted: Sat 26. Jan 2019, 10:16
by Mijzelf
The RandomTools package only provides the binary, and a way to get your own scripts executed.

To get rsync running in server mode, you have to provide a rsyncd.conf file, and start the daemon:

Code: Select all

rsync --daemon --config=/path/to/configfile 
(See rsync --daemon --help for further options).
Documentation about rsyncd.conf can be found here, with some simple examples at the end of the page.

Remains the start script. You don't write which box you have. The custom start scripts can be placed in /usr/local/zy-pkgs/etc/custom_startscripts/ on a fw4 device (NSA*), or /i-data/sysvol/.PKG/RandomTools/etc/custom_startscripts/ on a fw5 device. (NAS*).
The (executable) scripts will be executed in alphabetical order with argument 'start' on startup, and in reverse alphabetical order with argument 'stop' at shutdown.
There are already a handful of scripts already there, they are responsible for the start and stop of RandomTools itself.

Re: Rsync

Posted: Mon 28. Jan 2019, 09:27
by Fritzvonundzu
Hi,

ich habe eine NAS 542 mit Firmware-Version:V5.21

ich habe dann mal noch weitere Probleme, da ich mich mit rsync nicht auskenne.

Wenn ich

Code: Select all

rsync --daemon --config=/etc/rsyncd.conf
angebe, bekomme ich folgenden Fehler

Code: Select all

Failed to parse config file: /etc/rsyncd.conf
muss die Datei vorher angelegt sein?

Wenn ja, verstehe ich nicht was ich aktivieren muss von

Code: Select all

#motd file = /etc/rsyncd.motd
#log file = /var/log/rsyncd.log
#pid file = /var/run/rsyncd.pid
#lock file = /var/run/rsync.lock
#use chroot = no
#[NetBackup]
#path = /var/services/NetBackup
#comment = Network Backup Share
#uid = root
#gid = root
#read only = no
#list = yes
#charset = utf-8
#auth users = root
#secrets file = /etc/rsyncd.secrets
Zusätzlich habe ich gesehen das auf Port 873 ja schon der Zyxel Backupdienst (zysync) lauscht. Wie kann ich den beenden?

Re: Rsync

Posted: Mon 28. Jan 2019, 19:32
by Mijzelf
Fritzvonundzu wrote: muss die Datei vorher angelegt sein?
Yes. And putting it in /etc/ is a bad idea, as that is a ramdrive, which looses it's content on reboot. Better use /i-data/sysvol/.PKG/RandomTools/etc/rsynd.conf
Wenn ja, verstehe ich nicht was ich aktivieren muss von
rsync is a mature tool with a zillion options. So it's hard to say what has to be enabled in your usecase. If you want a share 'NetBackup', the most basic conf file is

Code: Select all

[NetBackup]
path = /i-data/sysvol/admin/NetBackup
comment = Network Backup Share
This gives everybody (inside your lan) rsync access to a backup directory in the admin samba share. (Which you'll have to create: 'mkdir -p /i-data/sysvol/admin/NetBackup' ).
Zusätzlich habe ich gesehen das auf Port 873 ja schon der Zyxel Backupdienst (zysync) lauscht. Wie kann ich den beenden?
Uninstall (or disable?) the BackupPlanner package.