Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-09-2006, 04:03 PM   #1
Registered: Jan 2006
Distribution: Centos
Posts: 145

Rep: Reputation: 16
Exclamation 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

Old 02-09-2006, 04:07 PM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Transfering 50G data via FTP and Preserving Date jjthomas Linux - General 2 09-09-2005 08:02 AM
Preserving Permissions RemusX2 Linux - Software 2 07-10-2005 11:20 AM
Preserving permissions when using cp pilot1 Linux - General 2 08-16-2003 05:29 AM
lastlog date does not match system date? jcmj Linux - Networking 6 10-22-2002 12:09 PM
help on preserving applications when upgrading doublefailure Linux - General 5 10-01-2002 11:42 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration