set cmd:fail-exit true
lcd /export/linux/scientific/5x
mirror —delete ….
The line “set cmd:fail-exit true” causes lftp to exit upon a failure of a command. Without this line lftp just goes on to the next line. This can have unwanted effects.
One scenerio would be if your /export/linux/scientific partition was remotely mounted, and one day that mount failed. When your nightly cron job ran, and it tried to do “lcd /export/linux/scientific/5x” and failed, lftp would be at the path “/”. It would then skip to the next command which begins “mirror —delete “. If you are wondering if lftp really would replace your entire operating system with a mirror of Scientific Linux, the answer is yes.
Юмористы Фермилаб и ЦЕРНа… Судя по общему тону и тому, что в версии от 2006-12-06 “set cmd:fail-exit true” отсутсвует, кто-то пускал задачу в кроне от рута и из-за того, что каталог /export/linux/scientific однажды оказался не смонтирован, кому-то заменило ОСь на компе на зеркало саентифика.
зы Хорошо, что у мя под зеркалирование отдельный юзер выделен.