rysnc command
COPY FILES FROM ONE FOLDER TO ANOTHER IN SAME SERVER
rsync -avz /source/folder/ /destination/folder/
COPY FILES FROM LOCAL SERVER TO REMOTE SERVER
rsync -avz /source/folder/ root@ip.of.remote.server:/destination/folder/
COPY FILES FROM REMOTE SERVER TO LOCAL SERVER
rsync -avz root@ip.of.remote.server:/source/folder/ /destination/folder/
Trailing “/” in the paths are very important in rsync command which should not be skipped. If Trailing “/” in the path is not present, that folder will be recreated in destination