LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Preserving date and ownership when untar ? (https://www.linuxquestions.org/questions/linux-software-2/preserving-date-and-ownership-when-untar-413573/)

talat 02-09-2006 04:03 PM

Preserving date and ownership when untar ?
 
Hi Guys


I am trying to tar the Maildir dir of users with
#tar -cvf Maildir.tar Maildir


I wants to know how to preserve the date and the owners ship of the file when untar it

Thanks
Talat

gilead 02-09-2006 04:07 PM

Have a look at `man tar` - does the -p option (also called --same-permissions, --preserve-permissions) do what you want?


All times are GMT -5. The time now is 10:32 PM.