pavelmachek (pavelmachek) wrote,
pavelmachek
pavelmachek

How do you cp -a, omitting certain directories

Ok, so I'm trying to move / filesystem from zaurus to G1. That should be as easy as cp -a --one-file-system / /mnt/sdcard ... right?

No, that would be too easy, zaurus is full of kernel sources, and sdcard is too small. cp must have --exclude option ... right?

Wrong, unfortunately. It has many options, but excluding subtree is not there. I did a dirty hack -- mount /dev/zero -t proc /usr/src ... is there better solution?
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 10 comments