Incremental dumps using cpio
Kim Chr. Madsen
kimcm at olamb.UUCP
Fri Jan 31 03:52:02 AEST 1986
[come on ye little faithfull goumet]
How about this little strategy:
#!/bin/sh
backupdate=/usr/local/bakupdate
if [ -f $backupdate ] ; then
find $1 -newer $backupdate -print | cpio -ov >/dev/whatever
touch $backupdate
echo "Incremental backup finished."
else
find $1 -print | cpio -ov > /dev/whatever
touch $backupdate # create empty file.
echo "Full backup finished"
fi
This program above is NOT guaranteed to work, but is just an idea of
the approach. In the case above you can use ncpio if you're using one
of at&t's 3B machines.
Kim Chr. Madsen
kimcm at olamb.UUCP
More information about the Comp.unix.wizards
mailing list