ランダムにrsyncを取得できませんでした。

ランダムにrsyncを取得できませんでした。

rsyncCapistranoスクリプトでランダムに次のエラーが発生します。

rsync: stat "/app/test-0.1-SNAPSHOT.jar.SB4uq7" failed: No such file or directory (2)
rsync: rename "/app/test-0.1-SNAPSHOT.jar.SB4uq7" -> "target/test-0.1-SNAPSHOT.jar": No such file or directory (2)
rsync: mkstemp "/app/.run-test-reports.sh.dY7r8H" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1039) [sender=3.0.6]

次のrsyncコマンドを使用しています。

rsync -Oarvzp --progress "#{source}" "#{user}@#{destination_host}:#{destination}/"

誰でもこの問題を解決するのに役立ちますか?

ベストアンサー1

depquidはおそらく正しいでしょう。

以下を追加することをお勧めします。

--exclude='test.*.jar.?????' --exclude='.run-text.*.sh.?????'

--exclude=app実行している操作に応じて、rsyncコマンドを代わりに使用することもできます。

ちなみに、-aと一緒に暗黙の-rと-pが重複していると思います。

おすすめ記事