LoginSignup
1
0

More than 3 years have passed since last update.

robocopyで転送先が見つからなくなる問題が発生する場合の対応

Posted at

1.運用の中で発生したこと

  • ルータ越えするディレクトリへのファイル転送でデフォルトだと時々エラーが発生していた、(以下のようなメッセージ)

2019/07/23 14:22:25 エラー 53 (0x00000035) ファイルをコピーしています D:\hoge\hoge-hoge\pdf_hoge\out\image\2019hoge_001_185_038.jpg
ネットワーク パスが見つかりません。

hoge秒 待機しています... 再試行しています...

2.Robocopyのコマンドの調整

  • 下のコマンドの「/R:」でリトライを設定しますが、ネットワークの設定が機能しなくなった時に、デフォルトの待機時間では復旧しない場合もあり、その場合は「/W:」で待ち時間を調整します。下のコマンドみたいな感じ。

robocopy D:\hoge\hoge-hoge\pdf_hoge\out m:\CATALOGUE /S /Z /DCOPY:T /MAXAGE:7 /R:5 /W:120 /TEE /LOG:D:\hoge\hoge-hoge\robocopy_本番へ.log /NP

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0