Copying Files in a Folder from One Server to Another Using SSH

To copy files from one server to another over SSH, the following command is used;

rsync -avz --progress -e 'ssh -p 1234' root@5.6.7.8:/bu/klasoru/kopyala/ /bu/klasorun/icine/

You enter the port number for the remote server in place of 1234 if it uses a different SSH port. If it is the default, typing 22 is sufficient.
5.6.7.8 is the IP address of the remote server.
/bu/klasoru/kopyala/ => Source server. In other words, the location of the files.
/bu/klasorun/icine/ => This is where it will be copied to on the new server.

The command above displays the percentage progress of the copy operation on the screen. It also allows you to copy files from a server with a custom port or the default SSH port 22.