The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 12-14-2008
frankie06 frankie06 is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 14
Cool

Quote:
Originally Posted by frank_rizzo View Post
can you add --atime-preserve when you do the extract?
Sure. Same result. Files are as in previous shell log.

$ rm destination/bla*
$ cd destination/
$ tar --atime-preserve -xvpf archive.tar
bla1
bla2
$ ls -lt b*
-rw-r--r-- 1 dsilt2 dsilt2 4 2008-12-15 03:52 bla2
-rw-r--r-- 1 dsilt2 dsilt2 4 2007-07-07 22:22 bla1
$ ls -ltu b*
-rw-r--r-- 1 dsilt2 dsilt2 4 2008-12-15 04:22 bla1
-rw-r--r-- 1 dsilt2 dsilt2 4 2008-12-15 04:22 bla2