Quando si esegue questo comando:
$ sudo rsync -r --delete --force --checksum --exclude=uploads /data/prep/* /data/app/
Sto ottenendo il seguente output:
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
Dalla lettura man rsyncè stata la mia impressione che l' --forceopzione dicesse a rsync di eliminare queste directory non vuote, che è il risultato desiderato.
Rif:
--force force deletion of dirs even if not empty
Come posso modificare il comando per eliminare le directory non vuote?
Sto usando rsync versione 3.0.8, su Gentoo Base System versione 2.0.3, nel caso sia rilevante.
Aggiornamento: aggiunto sudoal comando per chiarire che questo non è un problema di autorizzazioni di file.
ext3. È possibile che il filesystem potrebbe essere necessario o riparato. Sarò fsckalla prossima occasione e aggiornerò con i risultati.
fsckil sistema e questo problema è ancora presente.