Some thoughts on enhancing cpio(1)

Geoff Kuenning geoff at desint.UUCP
Thu Apr 17 18:56:19 AEST 1986


In article <150 at ttrda.UUCP> dwd at ttrda.UUCP (Dave Dykstra ) writes:

> ...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.

Ah!  But the *creation time* is changed when you move the file.
(Creation time is a misnomer;  the real meaning of this field is
"last change to inode").

Thus, the following find command will pick up all files for a daily
incremental backup:

	find / -mtime -1 -print -o -ctime -1 -print ...

or, if you have the mods to find that allow switches like -newercm, use

	find / -newercm /.lastinc -print -newermm /.lastinc -print

(I think I have the character order right;  it might be -newermc).
-- 

	Geoff Kuenning
	{hplabs,ihnp4}!trwrb!desint!geoff



More information about the Net.bugs.usg mailing list