One who has produce, and saw rain coming, and is afraid of the loss—the sages permitted him to lower the produce through a hatchway in the roof, that he should lower them down with a rope and they fall to the ground, or that he threw them thus to the ground. And even though there is in this exertion and a weekday activity, nevertheless they permitted it because of the loss. But not because of the loss, they did not permit. And even because of the loss, they only permitted lowering them through a hatchway in the roof, which is only a lowering, and not a lifting which would be an excessive exertion. Therefore, it is forbidden to lower them through windows in the wall, because here one must lift them until the window, and afterwards lower them. Therefore, if they were placed at a height near the window, where there is only a lowering alone—it is permitted. And he should not lower them with ladders or on stairs, whether with a rope or without a rope. And he should not move them from roof to roof, even though they are level, because of the exertion. And even if they are placed by way of a storehouse, and even to finish the storehouse—it is permitted because of the loss (Magen Avraham subsection 1 in the name of the Rashal, see there). And there are those who hesitate regarding this (see Beit Yosef). And see what I wrote in siman 333.
מי שיש לו פירות, וראה מטר שבא, ומתיירא מפני ההפסד – התירו לו חכמים שישלשל הפירות דרך ארובה שבגג, שיורידם למטה בחבל והן נופלין לארץ, או שזרקן כך לארץ. ואף על פי שיש בזה טירחא ועובדא דחול, מכל מקום התירו מפני ההפסד. אבל שלא מפני ההפסד לא התירו. ואפילו מפני ההפסד לא התירו רק לשלשלן דרך ארובה שבגג, שהוא רק שלשול, ולא הגבהה דהוה טירחא יתירא. ולכן אסור לשלשלן דרך חלונות שבכותל, מפני שבכאן צריך להגביהן עד החלון, ואחר כך להורידן. ולכן אם היו מונחין בגובה אצל החלון, דליכא רק שלשול בלבד – מותר. ולא יורידם בסולמות או במדרגות, בין בחבל ובין שלא בחבל. ולא יטלטלן מגג לגג, אף על פי שהן שוין, מפני הטירחא. ואפילו מונחים דרך אוצר, ואפילו לגמור האוצר – מותר מפני ההפסד (מגן אברהם סעיף קטן א בשם רש"ל, עיין שם). ויש מפקפקין בזה (עיין בית יוסף). ועיין מה שכתבתי בסימן שלג.