RSYNC Configuracion
Configurar un archivo de servicio de rsync como sigue:
[root@smtp root]# more /etc/rsyncd.conf
motd file = /etc/motd
max connections = 15
syslog facility = local3
[home]
comment = home
path = /home
read only = yes
list = no
hosts allow = 10.1.1.7
auth users = el_usuario
uid = 0
gid = 0
secrets file = /etc/rsyncd.secrets
En el archivo /etc/rsyncd.secrets, debe ir la clave
root@smtp root]# more /etc/rsyncd.secrets
el_usuario:la_clave_en_plano
Y por otro lado, en un cron debe ejecutarse la siguiente instruccion
/usr/bin/rsync -aq --progress --password-file=/root/rsync_passwd el_usuario@10.1.1.6::home /home
donde el en archivo /root/rsync_passwd vaya la clave de el_usuario
[root@smtp root]# more /etc/rsyncd.conf
motd file = /etc/motd
max connections = 15
syslog facility = local3
[home]
comment = home
path = /home
read only = yes
list = no
hosts allow = 10.1.1.7
auth users = el_usuario
uid = 0
gid = 0
secrets file = /etc/rsyncd.secrets
En el archivo /etc/rsyncd.secrets, debe ir la clave
root@smtp root]# more /etc/rsyncd.secrets
el_usuario:la_clave_en_plano
Y por otro lado, en un cron debe ejecutarse la siguiente instruccion
/usr/bin/rsync -aq --progress --password-file=/root/rsync_passwd el_usuario@10.1.1.6::home /home
donde el en archivo /root/rsync_passwd vaya la clave de el_usuario
0 Comments:
Publicar un comentario
<< Home