Directory structures

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Directory structures

  • Creator
    Topic
  • #52512
    Bob Schmid
    Participant

      Anyone haved a unix-utility-way  8) of taring up or backing up just a directory structure and igonring the files within?

    Viewing 1 reply thread
    • Author
      Replies
      • #74512
        Ryan Spires
        Participant

          Go to the root of the directory you want, type:

          find . -type d -print | cpio -ov > dir.cpio

          When you need to extract or put back into place… go to the where you want to extract and then type:

          cpio -id < dir.cpio This should rebuild your directory structure… I can’t take credit for this…  one of my coworkers pointed it out to me. try it in a “safe” place first to make sure it does what you want.

        • #74513
          Bob Schmid
          Participant

            that did it!

            APPRECIATE YOUR TIME!

        Viewing 1 reply thread
        • The forum ‘Cloverleaf’ is closed to new topics and replies.