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: NonePriority: 5 - Normal
Severity: 2 - MinorStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenOperating 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?



John A Parker <johnaparker>


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

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup1