Rsync is very useful tool used by Linux system administrators to sync between systems. We have all ready looked different features of the rsync
where you can find them below.
Rsync是Linux系统管理员用于在系统之间进行同步的非常有用的工具。 我们已经准备好了rsync
不同功能,您可以在下面找到它们。
Rsync Command Tutorial With Examples
How To Use Rsync Over Ssh In A Secure Manner?
In this tutorial we will look how to resume partial file transfers with rsync
. This is very useful if we are transferring 8GB file but the transfer ended in the middle.
在本教程中,我们将研究如何使用rsync
恢复部分文件传输。 如果我们正在传输8GB文件,但传输在中间结束,这将非常有用。
使用部分选项启用恢复 (Enable Resume with Partionally Option)
We will use -P
options which will enable to resume interrupted file transfer. This option provides ability to resume even the interrupted transfer is done scp
or ftp
it simply look files in byte manner and resume where it left. In this example we will resume file named Ubuntu.iso
to transfer from remote to local
我们将使用-P
选项,这些选项将使恢复中断的文件传输成为可能。 此选项提供了即使在中断传输完成后仍可恢复的功能,例如scp
或ftp
它scp
字节方式查找文件并在其离开的位置恢复。 在此示例中,我们将恢复名为Ubuntu.iso
文件以从远程传输到本地
$ rsync - P [email protected]:/home/ismail/Ubuntu.iso Downloads/
使用部分选项启用恢复 (Enable Resume with Partionally Option)
We can made things more secure by using ssh
tunnels. In this example we will resume parted transfer over ssh
tunnel. In this example we will resume file named Ubuntu.iso
to transfer from remote to local using ssh
通过使用ssh
隧道,我们可以使事情更加安全。 在此示例中,我们将继续通过ssh
隧道进行部分传输。 在此示例中,我们将恢复名为Ubuntu.iso
文件,以使用ssh从远程传输到本地
$ rsync -e ssh -P [email protected]:/home/ismail/Ubuntu.iso Downloads/
翻译自: https://www.poftut.com/linux-rsync-resume-partial-file-transfers/