I have a question on tar 'extract' i want to perform an extract that only overwrites files that are older than the ones in the tar archive and skips (doesn't overwrite) ones that are newer than those in the tar archive. I've read the info pages. I saw the '--overwrite' and '--keep-old-files' options but they do not do what I want. It seems the options are, either overwrite all files (--overwrite option), or skip files that already exist (--keep-old-files option). How can I do a date test and --overwrite files that are older than those in the tar archive, and --keep-old-files that are newer then the ones in the tar archive? Please help! Thanks Matt
On Thu, 2003-10-09 at 09:31, Matt Stamm wrote:
I have a question on tar 'extract'
i want to perform an extract that only overwrites files that are older than the ones in the tar archive and skips (doesn't overwrite) ones that are newer than those in the tar archive.
I've read the info pages. I saw the '--overwrite' and '--keep-old-files' options but they do not do what I want. It seems the options are, either overwrite all files (--overwrite option), or skip files that already exist (--keep-old-files option).
How can I do a date test and --overwrite files that are older than those in the tar archive, and --keep-old-files that are newer then the ones in the tar archive?
Please help!
Thanks Matt
Since a tar archive was supposed to be a backup of the files on the hard-drive it is assumed that the files in the tar archive can never be newer that those on the hard-drive hence that option would not be available. Should be but is not. -- Ken Schneider unix user since 1989 linux user since 1994 SuSE user since 1998 (5.2)
participants (2)
-
Ken Schneider
-
Matt Stamm