Day-to-Day Linux
Updated 30 October 2024
Use of “rsync” command
shell
# 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
shell
# Command
scp <source> <destination>
# Example with directory copy
scp -r /tmp/prometheus [email protected]:/tmp/Spotted a mistake or want something added? Send me a note.