I tried to use rsyncd
to transfer projects from client to server (push operation). rsync
(3.1.2
) are installed and running on both client and server, with the server running rsyncd
. The rsyncd.conf
is as follows,
pid file = /run/rsyncd.pid
strict mode = false
log file = /var/log/rsync.log
[dir1]
comment = test folder dir1
path = /opt/dir1/
uid = user_name
gid = group_name
read_only = false
when I tried the following command,
rsync -aurv /path/to/dir1/ user@host_name::dir1
I got the following errors,
rsync: getaddrinfo: host_name 873: Temporary failure in name resolution
rsync error: error in socket IO (code 10) at clientserver.c(125) [sender=3.1.2]
The client and the destination server are connected through a bastion server. There is no issue if I just tried,
rsync -aurv /path/to/dir1/ user@host_name:/path/to/dir1
I am wondering how to fix the errors.
cheers