使用rsync备份到两个位置

请原谅我的无知,我已经寻找答案,但到目前为止空白。

这就是我想要做的:

使用rsync从文件服务器(Ubuntu Server 14.04)备份到NAS设备。 完成此备份后,再次通过SSH将rsync运行到远程服务器。

我有一种唠叨的感觉,这将无法正常工作 – 与rsync如何标记文件已经备份并且自上次备份后没有更改有关。

我怀疑这可能会导致问题吗?

谢谢,

西蒙。

从手册页:

 DESCRIPTION It [rsync] offers a large number of options that control every aspect of its behavior and permit very flexible specification of the set of files to be copied. It is famous for its delta-transfer algorithm, which reduces the amount of data sent over the network by sending only the differences between the source files and the existing files in the destination. 

开箱即用,没有任何特殊参数,rsync将完全按照您的需要执行

  • 将所有差异同步到NAS 并将所有差异同步到远程SSH服务器。
  • 第一次运行它时,它将在两者上创建完整副本,然后独立同步2。

即使与远程服务器的连接被丢弃,它也会在下次调用时从中断处继续。