server configuration
on server 172.30.100.1
create file /etc/rsyncd.conf file
[global]
max connections = 25
log file = /var/log/rsync_log
[home]
comment = web site
path = /home
uid = viacom18
gid = viacom18
read only = no
list = yes
auth users = tanajiyadav
secrets file = /etc/rsync.secret
create file /etc/rsync.secret
#username:password
tanajiyadav:p@ssw0rd
start rsync service with rsync --deamon command
client configuration
cronjob configuration
*/2 * * * * /usr/bin/rsync -av --password-file=/etc/rpass tanajiyadav@172.30.100.1::home /home
on server 172.30.100.1
create file /etc/rsyncd.conf file
[global]
max connections = 25
log file = /var/log/rsync_log
[home]
comment = web site
path = /home
uid = viacom18
gid = viacom18
read only = no
list = yes
auth users = tanajiyadav
secrets file = /etc/rsync.secret
create file /etc/rsync.secret
#username:password
tanajiyadav:p@ssw0rd
start rsync service with rsync --deamon command
client configuration
cronjob configuration
*/2 * * * * /usr/bin/rsync -av --password-file=/etc/rpass tanajiyadav@172.30.100.1::home /home
No comments:
Post a Comment