rsync daemon for opt zimbra

1. mv /opt/zimbra /opt/zimbra.old

2.set cronjob for data migration

34 22 21 * * /bin/sh /home/sas/ >>/home/sas/optzimbra.log

3.create scripts in /home/sas/

create and pass

chmod 754

[[email protected] sas]# cat

rsync -avz –password-file=/home/sas/pass -u  [email protected]::opt/zimbra  /opt/ > /home/sas/opt.log  2>&1


echo “START : ” $T1  >> /home/sas/opt.log
echo “END : ” $T2  >> /home/sas/opt.log

set same password from live server from /etc/rsyncd.secrets

chmod 400 pass

enter the opt location in rsync.conf of live server from where you want to fetch data

        path = /opt
        comment = An Example
        auth users = root
        secrets file = /etc/rsyncd.secrets
        read only = no
        uid = root
        gid = root
        use chroot = yes

Leave a Comment

Your email address will not be published. Required fields are marked *

Open chat