Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!samsung!uunet!mcsun!ukc!strath-cs!prlhp1!pearmana From: pearmana@prlhp1.prl.philips.co.uk (Andy Pearman) Newsgroups: comp.sys.hp Subject: find and cpio Keywords: dumping Message-ID: <1150@prlhp1.prl.philips.co.uk> Date: 11 Sep 90 14:47:23 GMT Reply-To: pearmana@prlhp1.UUCP Organization: Philips Research Laboratories, Redhill, UK Lines: 30 I've been thinking about how our dumping works on our various Unix based machines and I'm now a bit worried about our HP systems. On our Suns we use dump/restore which works on inodes. This means that a file with several hard links will only be dumped once - no problem then when restoring. On HP-UX (6.21) we use their backup script which effectively does: cd / find . -hidden -print | cpio -ocxa | tcio ...... Am I right in thinking that find works by looking in directories and -print's everything it finds, which of course means that several directory entires hard-linked to the same file will be picked up individually and passed to cpio for dumping ? When performing a restore using cpio I assume that each file read is allocated a fresh inode and therefore what may have been one file hard-linked several times will be restored as several individual files (taking up more disk-space than originally used). I would be grateful if someone could clear this up for me. Andy -- Andy Pearman, Computer Dept, Philips Research Labs, Redhill, Surrey, England. pearmana@prl.philips.co.uk