LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 02-09-2006, 04:03 PM   #1
talat
Member
 
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

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

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


Reply


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


All times are GMT -5. The time now is 11:03 PM.

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