Solaris how to exclude files in gzSolaris equivalent for depth/prune?How to exclude a list of full directory...

In Adventurers League, is there any way for an 5th-level wizard to gain heavy armor proficiency?

Getting fresh water in the middle of hypersaline lake in the Bronze Age

Manually select/unselect lines before forwarding to stdout

What made Windows ME so crash-prone?

Can both line and load go to same screw on a GFCI outlet?

Extension of trace on von Neumann subalgebra

In special relativity is mass just a measure of all other energy than kinetic?

When to ask for constructive criticism?

I do not have power to all my breakers

Is this artwork (used in a video game) real?

Should I be able to keep my company purchased standing desk when I leave my job?

What alternatives exist to at-will employment?

Project Euler, problem # 9, Pythagorean triplet

Index Uniqueness Overhead

Accidentally deleted python and yum is not working in centos7

Why does the Earth have a z-component at the start of the J2000 epoch?

Why use null function instead of == [] to check for empty list in Haskell?

Why limit to revolvers?

What is the technical explanation of the note "A♭" in a F7 chord in the key of C?

Video editor for YouTube

Why did Steve Rogers choose Sam in Endgame?

How to get bold version of blackboard bold fonts?

Why do legislative committees exist?

Is this more than a packing puzzle?



Solaris how to exclude files in gz


Solaris equivalent for depth/prune?How to exclude a list of full directory paths in find command on SolarisHow to create a gnu tarball that can be extracted by solaris tarHow do I use grep to find a text string in files in sub folders of a parent folder without -r switchList only the count of all files/directories for the directory tree of present directoryExclude directory in (native Solaris) find commandHow to remove all files in a directory except one file in SolarisSolaris script to scp files from the Solaris server to Linux serverSolaris file permissions not inherited by OAG log filesCorporate exchange server strips Solaris email attachement






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















How do I exclude files while gz in Solaris;
I want to gz directories inc sub directories but exclude /temp directory and *.gz files.
This is what I have used so far;



tar -cvf api_v2.x.tar.gz --exclude *.gz --exclude ./temp api


which still including the excluding folders.










share|improve this question































    0















    How do I exclude files while gz in Solaris;
    I want to gz directories inc sub directories but exclude /temp directory and *.gz files.
    This is what I have used so far;



    tar -cvf api_v2.x.tar.gz --exclude *.gz --exclude ./temp api


    which still including the excluding folders.










    share|improve this question



























      0












      0








      0








      How do I exclude files while gz in Solaris;
      I want to gz directories inc sub directories but exclude /temp directory and *.gz files.
      This is what I have used so far;



      tar -cvf api_v2.x.tar.gz --exclude *.gz --exclude ./temp api


      which still including the excluding folders.










      share|improve this question
















      How do I exclude files while gz in Solaris;
      I want to gz directories inc sub directories but exclude /temp directory and *.gz files.
      This is what I have used so far;



      tar -cvf api_v2.x.tar.gz --exclude *.gz --exclude ./temp api


      which still including the excluding folders.







      solaris tar






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 13 mins ago









      Jeff Schaller

      47.7k11 gold badges69 silver badges154 bronze badges




      47.7k11 gold badges69 silver badges154 bronze badges










      asked 56 mins ago









      BoomRamadaBoomRamada

      102 bronze badges




      102 bronze badges






















          0






          active

          oldest

          votes














          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f530355%2fsolaris-how-to-exclude-files-in-gz%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f530355%2fsolaris-how-to-exclude-files-in-gz%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...