How to maintain a file's 'last modified' date ?
        Posted  
        
            by 
                Will.
            
        on Ask Ubuntu
        
        See other posts from Ask Ubuntu
        
            or by Will.
        
        
        
        Published on 2013-06-24T16:30:55Z
        Indexed on 
            2013/06/24
            16:37 UTC
        
        
        Read the original article
        Hit count: 240
        
date
I'm copying files and folders over from one filesystem to another (both are ext3) via cp in the terminal. The 'date modified' on all of the files are being changed to the current time although I am not modifying the folder or the files. I'd like for them to keep their existing 'last modified date' which vary within the past 5 years.
I am not interested in changing them to a specific date as described this previous question, but to maintain the existing 'last modified' date.
I'm using 12.04.
© Ask Ubuntu or respective owner