rsyncを使用して最新のファイルを古いファイルに置き換えることはできますか?

rsyncを使用して最新のファイルを古いファイルに置き換えることはできますか?

以下を想定します。

source:
- foo    3/1/2021
- bar    2/1/2021
- foobar 1/1/2021

destination:
- foo    1/1/2021
- bar    2/1/2021
- foobar 3/1/2021

rsyncが次のように新しいファイルを古いファイルに置き換えたいとしましょう。

source:
- foo    3/1/2021 // Newer
- bar    2/1/2021 // Same age
- foobar 1/1/2021 // Older

destination:
- foo    1/1/2021 // unchanged
- bar    2/1/2021 // unchanged
- foobar 1/1/2021 // overwritten because it was newer than the source.

どうすればいいですか?逆の場合も通過できます--update

ベストアンサー1

おすすめ記事