जब यह आदेश चल रहा हो:
$ sudo rsync -r --delete --force --checksum --exclude=uploads /data/prep/* /data/app/
मुझे निम्न आउटपुट मिल रहा है:
cannot delete non-empty directory: html/js/ckeditor/_source/plugins/uicolor/yui
cannot delete non-empty directory: html/js/ckeditor/_source/plugins/uicolor/yui
cannot delete non-empty directory: html/js/ckeditor/_source/plugins/uicolor
cannot delete non-empty directory: html/js/ckeditor/_source/plugins/uicolor
cannot delete non-empty directory: html/js/ckeditor/_source/plugins
cannot delete non-empty directory: html/js/ckeditor/_source/plugins
cannot delete non-empty directory: html/js/ckeditor/_source
cannot delete non-empty directory: html/js/ckeditor/_samples
cannot delete non-empty directory: html/js/ckeditor/plugins/uicolor/yui
cannot delete non-empty directory: html/js/ckeditor/plugins/uicolor/yui
cannot delete non-empty directory: html/js/ckeditor/plugins/uicolor
पढ़ने से man rsyncयह मेरी धारणा थी कि --forceविकल्प इन गैर-रिक्त निर्देशिकाओं को हटाने के लिए rsync को बताएगा, जो वांछित परिणाम है।
रेफरी:
--force force deletion of dirs even if not empty
मैं गैर-रिक्त निर्देशिकाओं को हटाने के लिए कमांड को कैसे संशोधित कर सकता हूं?
मैं प्रासंगिक होने के मामले में Gentoo बेस सिस्टम रिलीज़ 2.0.3 पर rsync संस्करण 3.0.8 का उपयोग कर रहा हूं।
अद्यतन:sudo यह स्पष्ट करने के लिए कमांड में जोड़ा गया कि यह फ़ाइल अनुमति समस्या नहीं है।
ext3। यह संभव है कि फाइलसिस्टम जरूरत या मरम्मत में हो। मैं fsckअगले अवसर पर हूँ और परिणामों के साथ अद्यतन करूँगा ।
fsckप्रणाली की है और यह मुद्दा अभी भी मौजूद है।