Bu komutu çalıştırırken:
$ sudo rsync -r --delete --force --checksum --exclude=uploads /data/prep/* /data/app/
Aşağıdaki çıktıyı alıyorum:
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
Okumaktan sonra man rsync, --forceseçeneğin rsync'e istenen boş olan bu boş dizinleri silmesini söyleyeceği izlenimini verdi .
Ref:
--force force deletion of dirs even if not empty
Boş olmayan dizinleri silmek için bu komutu nasıl değiştirebilirim?
İlgili olması durumunda Gentoo Base System 2.0.3 sürümünde rsync 3.0.8 sürümünü kullanıyorum.
Güncelleme:sudo Bunun bir dosya izinleri sorunu olmadığını açıkça belirtmek için komuta eklenmiştir .
ext3. Dosya sistemine ihtiyaç duyulması veya onarılması mümkündür. Bir fscksonraki fırsatta olacağım ve sonuçları ile güncelleyin.
fscksistemi yaptım ve bu konu hala mevcut.