helpGNU tar - Support: sr #107690, Operational Question...

 
 

sr #107690: Operational Question...

Submitted by:  John A Parker <johnaparker>
Submitted on:  Wed 18 May 2011 03:46:38 PM UTC  
 
Category:  None Priority:  5 - Normal
Severity:  2 - Minor Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 18 May 2011 03:46:38 PM UTC, original submission:

This may be an irrational desire but I wondered if there was a way to specify TWO sets of options on one tar command?

For example, I'd love - in one command - to be able to bundle AND compress (-z) the contents of a directory which was mostly symlinks WITH the contents of the same directory but this time dereferencing the symlinks.

Performing the above using two distinct operations (using -c for the first step and then -u for the second) means I can't simultaneously use -z, requiring a third step to gzip the tar ball.

Obviously I'm being lazy and could bundle the three steps into one shell script, but I'd love to be able to run something like...

tar -cvzf ~/test.tar.gz !-h -P /dir1 -h -P /dir1

Maybe I can do this but am just didn't know it?

THANKS!!!

John

John A Parker <johnaparker>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by johnaparker (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.3