I am trying to copy directories from our server to a specific docker container on our test server. Therefore i would like to use the rsync command.
I tried the following:
rsync test user@92.374.534.34:9407:/var/www/html
Note: test (the directory), user (ssh user from destination server), 92.374.534.34 (IP from destination server, changed for this question), :9407 (external docker Port for ssh), /var/www/html (destination path)
To avoid being blocked from the firewall, we allowed a ssh connection between both servers.
Here is the displayed error message from the terminal:
rsync: mkdir "/home/user/9407:/var/www/html" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at main.c(674) [Receiver=3.1.1]