Posts

Showing posts with the label rsync daemon

rsync daemon for opt zimbra

1. mv /opt/zimbra /opt/zimbra.old 2.set cronjob for data migration 15 15 * * 1,2,3,4,5,6 /bin/sh /home/sas/mswc-daily.sh 06 15 * * 7 /bin/sh /home/sas/mswc-weekly.sh 3.create scripts in /home/sas/ cat mswc-daily.sh #!/bin/sh T1=`date` rsync -avz --update --password-file=/home/sas/pass-mswc  root@192.227.110.100::opt/ /mswc-mirror/opt/zimbra/ > /home/sas/logs/mswc.log  2>&1 T2=`date` echo "START : " $T1  >> /home/sas/logs/mswc.log echo "END : " $T2  >> /home/sas/logs/mswc.log cat mswc-weekly.sh #!/bin/sh T1=`date` rsync -avz --delete --password-file=/home/sas/pass-mswc  root@192.227.110.100::opt/ /mswc-mirror/opt/zimbra/ > /home/sas/logs/mswc-weekly.log  2>&1 T2=`date` echo "START : " $T1  >> /home/sas/logs/mswc-weekly.log echo "END : " $T2  >> /home/sas/logs/mswc-weekly.log cat /home/sas/pass-mswc abc@123 set same password from live server from /etc/rsyncd.secrets chmod 400 /home/s...

@ERROR: auth failed on module etc

@ERROR: auth failed on module etc chmod 600 /etc/rsync.secrets or chmod 600 /etc/rsyncd.secrets check file in  cat /etc/rsyncd.conf

@ERROR Invalid UID root

kill rsync on where it was not able to connect and then start with rsync --daemon

How to Set Up an Rsync Daemon on Your Linux Server

Setting up an Rsync Daemon //this needs to be done on the server from where you want a backup First, using your preferred text editor, you’ll need to create the configuration file  /etc/rsyncd.conf , if you do not have one already. Below is an example of our basic configuration parameters and explanations of each one. transfer logging = true log format = %h %o %f %l %b log file = /var/log/rsyncd.log motd file = /etc/motd hosts allow =  63.141.245.10  192.151.147.82  199.168.100.242  192.187.98.202 [etc]         path = /etc         comment = An Example         auth users = root         secrets file = /etc/rsyncd.secrets         read only = no         uid = root        ...