find

Wm E Davidsen Jr davidsen at crdos1.crd.ge.COM
Thu Dec 14 00:32:17 AEST 1989


In article <21231 at mimsy.umd.edu> chris at mimsy.umd.edu (Chris Torek) writes:

| `ctime' can be thought of as `time of last operation that requires that
| the file be backed up'.  A backup program can decide whether a file needs
| saving by comparing the file's ctime with the time of the previous backup.

  No. ctime is the time of a change to the *inode* not the file. A smart
backup program can just save the new inode info and restore that, if
incremental dumps are being done. As an example, if you change the
access with chmod, the inode time will change, and ctime will be
updated. Since the content of the file has not changed the actual file
itself doesn't need to be backed up.

  The only backup which appears to take advantage of this is "dump," and
I'm not sure that the feature is in all versions. It is important to
understand the distinction, however, between changing the contents and
the characteristics. The field which indicates that the file content has
been changed is the modified time (find param -mtime).

-- 
bill davidsen	(davidsen at crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen)
"The world is filled with fools. They blindly follow their so-called
'reason' in the face of the church and common sense. Any fool can see
that the world is flat!" - anon



More information about the Comp.unix.questions mailing list