Re: directory timestamps after restor
marzen <marzheister-S0/[email protected]> Thu, 11 Nov 2004 20:18:06 +0000 (UTC)
| Newsgroups | gmane.comp.sysutils.backup.hdup.general |
|---|---|
| Message-ID | <[email protected]> |
tom fogal <tfogal@...> writes: > > <loom.20041107T194236-959@...>marzen writes: > >hi, > > > >why arent timestamps of directories correctly restored ? > >the timestamp of every directory is always the time of > >extraction. > > This would occur if the archive was both created and extracted with the > '-p' option. I can't remember if hdup allows you to specify arbitrary > tar options via the config file, but if not I'd bet it would be a > simple hack to the source. > > -tom > > hi, the -p option doesn't make a difference. actually the timestamps of directories are correctly restored. the only directories, which have the timestamps of extraction time, are the ones with symbolic links. from the tar documentation: "Normally, when tar archives a symbolic link, it writes a block to the archive naming the target of the link. In that way, the tar archive is a faithful record of the filesystem contents. --dereference (-h) is used with --create (-c), and causes tar to archive the files symbolic links point to, instead of the links themselves. When this option is used, when tar encounters a symbolic link, it will archive the linked-to file, instead of simply recording the presence of a symbolic link." http://www.gnu.org/software/tar/manual/html_chapter/tar_8.html#SEC122 so, this seems to be the default. i don't know how to turn it off, cause i like to have original timestamps of all files. ( my backup doesn't need to be portable and i don't have any broken links ;) does anyone knows who to do that ? greetz marzn