Path: utzoo!mnetor!uunet!steinmetz!davidsen From: davidsen@steinmetz.steinmetz.UUCP (William E. Davidsen Jr) Newsgroups: comp.unix.questions Subject: Re: incremental backups using cpio...HOW??? Message-ID: <9478@steinmetz.steinmetz.UUCP> Date: 9 Feb 88 17:05:26 GMT References: <155@csd_v.UUCP> <10048@ncc.UUCP> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: General Electric CRD, Schenectady, NY Lines: 23 Keywords: incrmental backup cpio In article <10048@ncc.UUCP> lyndon@ncc.UUCP (Lyndon Nerenberg) writes: | | This is a Q&D hack I've used for quite some time... | | #!/bin/sh | cd /usr/src | find . -type f -a -newer /etc/local/lastinc -print | cpio -oacvQ /dev/rmt0 | touch /etc/local/lastinc | exit 0 The problem with this is that there is a window in which a file may change after being backed up and before the bulkhead file is touched. I was bitten by this (just) once and use: touch marker.new find /u -newer marker -print | cpio -oBc > /dev/whatever mv marker marker.old && mv marker.new marker Obviously I had to create the original marker file with touch, then do a backup of some kind. -- bill davidsen (wedu@ge-crd.arpa) {uunet | philabs | seismo}!steinmetz!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me