v, –verbose:This option is used if the user wishes to know what the computer is doing while running the command. Sent 10,600 bytes received 35 bytes 7,090.00 bytes/sec ![]() ![]() Our command will become : $ rsync -avz /root/file-to-send.zip -progress Output: rsync -avz /root/file-to-send.zip :/root/new-file.zip -progressġ31,604 100% 94.26MB/s 0:00:00 (xfr#1, to-chk=0/1) When you transfer large files, it’s more user-friendly to have a progress bar with -progress. $ rsync -avz /root/file-to-send.zip Output: rsync -avz /root/file-to-send.zip :/root/new-file.zip $ ssh ls Output: ssh lsįile-to-send.zip Step 2 : Use rsync to transfer the file. Step 1 : Connect to server A and locate the file. In this example, I’m going to copy a file from Server A (192.168.182.130) located in /root/file-to-send.zip to Server B (192.168.182.131) and save it to /root/new-file.zip. Rsync over SSH can use a standard login with a password or a Private key for SSH authentication Set up an SSH connection with the destination server. This program is quick and efficient, replicating only the changes from the source and allowing for customization. Rsync is used for mirroring, backups, and data migration to other servers. Rsync, sometimes known as Remote Sync, is a free command-line utility that allows you to transfer files and directories to both local and remote locations. ![]() Linux system administration, Security Introduction
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |