How to Copy Files from One Server to Another server In Linux | Scp and Rsync Command

Опубликовано: 25 Май 2022
на канале: Tech2 Towards
3,467
28

#rsync #scp #transferfiles

Step 1) How to Copy Files from One Linux Server to Another Server With scp and rsysnc Command !

Step 2) How to Download Files from One Linux Server to Another Server With scp and rsysnc Command !


RSYNC and SCP both are command-line tool for copying files and directories between local and remote Machine.


What Is Diffrence Between RSYNC And SCP Command

SCP Does copy files and directories in secure way we use for scp. Basically,It is a plain linear copy.
scp reads the source file and writes it to the destination.
Secure Copy (SCP) uses SSH to copy only the files or directories that you select.
It uses ssh for data transfer, and uses the same authentication and provides the same security as ssh.


RSYNC is a command used for moving and synchronizing files and directories.
With this command we can manage files or directories effectively while backing up data on a regular basis.
Basically rsync compares if there is any differences between the older files and directories.

=====================================
Scp and Rsync Upload Command Example
=====================================

scp Backup.zip USER@SERVER-IP:/home/ubuntu/Desktop

rsync -avzh Backup.zip USER@SERVER-IP:/home/ubuntu/Desktop

=====================================
Scp and Rsync Download Command Example
=====================================

scp USER@SERVER-IP:/home/ubuntu/Desktop .

rsync -avzh USER@SERVER-IP:/home/ubuntu/Desktop .


▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
⏺Visit My WEBSITE ▶https://tech2towards.blogspot.com/
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
THANK YOU FOR SUBSCRIBE MY CHANNEL...
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬