There is a serverA with a folder folder1, in folder1 there are different files:
There is a serverB with an empty folder2
I want to constantly sync
*.jpg files from serverA to serverB, so that serverB will have test.jpg and test2.jpg, test3.jpg and other .jpg files it can find in subdirectories of the serverA.
Also, I want it work automatically, without requesting password prompt.
Two CentOS servers. I understand that it is best to use rsync, cron, but how should I do?