Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User stokes's Avatar
    Join Date
    Oct 2004

    Backing up entire hard drive using find and cpio

    I'm trying to modify this command to back up my system to tape (scsi tape drive at st0)

    find . -print | cpio -ovH crc -O /dev/st0
    However, I want to exclude these directories: /proc, /dev and /mnt

    How do I go about this?
    Registered Linux user #389109
    My Semi-Linux Blog

  2. #2
    Look at find's -prune option. Also consider using -depth so you restore directory timestamps correctly.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts