Some thoughts on enhancing cpio(1)

Henry Spencer henry at utzoo.UUCP
Sat Apr 12 04:43:39 AEST 1986


> ... good except for the case
> where files are moved without changing their modification time.  Then
> the files will not show up on the incremental backup but the file in the
> former directory will be removed.

As has been known at least since the V7 dump/restor system was written
(1978?), you should dump based on the most recent of the mod time and
the change time.  The change time changes when the inode changes, and
since a rename involves (temporarily) changing the link count, the change
time will reflect it.

> For a while we were losing our filesystems on a regular basis and we
> found that incremental backups are basically useless...

Actually they work fine if done right, i.e. using a proper dump/restor
system rather than cpio, and done standalone so the filesystem is not
changing underfoot.  Yes, we have lost filesystems and restored them
perfectly from full+incremental backups.

It is quite possibly true that incrementals are basically useless on a
System V using cpio for backups.
-- 
Support the International League For The Derision Of User-Friendliness!

				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,decvax,pyramid}!utzoo!henry



More information about the Net.bugs.usg mailing list