[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

--atime-preserve and --compare

From: Eric Kostelich
Subject: --atime-preserve and --compare
Date: Thu, 5 Oct 2000 17:00:56 -0700 (MST)

Hello folks,

I've looked at your 1.13 tar distribution and thank you for
a useful piece of software.  One of the features that I appreciate
is the --atime-preserve option to preserve access times on files
that are archived.

I think it would be useful if --atime-preserve also worked to
preserve the access times of files whose contents are compared
with the --compare option.  That is, the command sequence
        tar --atime-preserve -c -f archive.tar file.c ...
        tar --atime-preserve --compare -f archive.tar
should leave the access time of file.c unmodified after the
contents are compared.  In this way, system administrators
can preserve access time data not only when the archive is
created but can also do so if a --compare becomes necessary
after the archive has been written.

I've attached a modified compare.c that attempts to do this.
It's been lightly tested.

You may or may not agree with my suggestion but in any case
I'd appreciate acknowledgment that someone at least read this

Best regards,
--Eric Kostelich
Eric Kostelich, Professor, Dept. of Mathematics, Box 871804,
Arizona State University, Tempe, AZ 85287-1804.
Telephone:  (480) 965-5006.   Fax:  (480) 965-8119.

Attachment: compare.c
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]