Use of “rsync” command

# Command
rsync -av --progress <source file location> <destination location>

# Example
# Source File "test1.txt" is on localhost
# Destination server IP Address: 172.16.20.28 & User: root
# Destination Path: /tmp/

rsync -av --progress test1.txt [email protected]:/tmp/

Use of “scp” command

 # Command
 scp <source> <destination>
 
 # Example with directory copy
 scp -r /tmp/prometheus [email protected]:/tmp/