Encrypting existing tar.gz archiveExtract multiple .tar.gz files with a single tar callVerifying a .tar.gz...

How does a pilot select the correct ILS when the airport has parallel runways?

Do I have to explain the mechanical superiority of the player-character within the fiction of the game?

How to avoid voltage drop when using full bridge rectifier as reverse polarity protection

How does DC work with natural 20?

JSON selector class in Python

Did the CIA blow up a Siberian pipeline in 1982?

Trainee keeps missing deadlines for independent learning

Helping ease my back pain when I'm studying 13 hours everyday, even weekends

How does the spell Remove Curse interact with a Sword of Vengeance?

Really Old Stock Valuation

How is hair tissue mineral analysis performed?

How can I politely work my way around not liking coffee or beer when it comes to professional networking?

Can White Castle?

Why did pressing the joystick button spit out keypresses?

How dangerous are set-size assumptions?

How large would a mega structure have to be to host 1 billion people indefinitely?

What is the legal status of travelling with methadone in your carry-on?

What does the hyphen "-" mean in "tar xzf -"?

Is there a maximum distance from a planet that a moon can orbit?

Is it illegal to withhold someone's passport and green card in California?

What is the meaning of "понаехать"?

Methodology: Writing unit tests for another developer

Inaccessible base class despite friendship

Why do even high-end cameras often still include normal (non-cross-type) AF sensors?



Encrypting existing tar.gz archive


Extract multiple .tar.gz files with a single tar callVerifying a .tar.gz backupIs it safe to assume the tar.gz file is healthy?Compose and pipe a gzipped tar archive in one gotar append to file in archivehow to create multi tar archives for a huge folderHow to untar safely, without polluting the current directory in case of a tarbomb?Remove the pathname when extracting and archiving files that end with .log from /var/logTar ignores --directory optionCreate archive (tar.gz, …) from file given via stdin






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







0















I know of a method to encrypt a tar.gz archive while creating it (not sure if it's a recommend one):



tar -czvf /path/to/save/archive.tar.gz -C /path/to/archive . | 
openssl des3 -salt -k #PASSWORD# | dd of=archive


The problem is that I have some large existing archives that I'd like to encrypt also, but I'm not sure if that is possible without re-archiving everything?










share|improve this question
















bumped to the homepage by Community 1 hour ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















    0















    I know of a method to encrypt a tar.gz archive while creating it (not sure if it's a recommend one):



    tar -czvf /path/to/save/archive.tar.gz -C /path/to/archive . | 
    openssl des3 -salt -k #PASSWORD# | dd of=archive


    The problem is that I have some large existing archives that I'd like to encrypt also, but I'm not sure if that is possible without re-archiving everything?










    share|improve this question
















    bumped to the homepage by Community 1 hour ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0








      I know of a method to encrypt a tar.gz archive while creating it (not sure if it's a recommend one):



      tar -czvf /path/to/save/archive.tar.gz -C /path/to/archive . | 
      openssl des3 -salt -k #PASSWORD# | dd of=archive


      The problem is that I have some large existing archives that I'd like to encrypt also, but I'm not sure if that is possible without re-archiving everything?










      share|improve this question
















      I know of a method to encrypt a tar.gz archive while creating it (not sure if it's a recommend one):



      tar -czvf /path/to/save/archive.tar.gz -C /path/to/archive . | 
      openssl des3 -salt -k #PASSWORD# | dd of=archive


      The problem is that I have some large existing archives that I'd like to encrypt also, but I'm not sure if that is possible without re-archiving everything?







      tar openssl gzip






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 24 '15 at 4:46







      Ned Schneebly

















      asked Oct 24 '15 at 4:40









      Ned SchneeblyNed Schneebly

      135




      135





      bumped to the homepage by Community 1 hour ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 1 hour ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          You can encrypt any existing file with the same encryption tool and options, using standard shell redirection. For example:



          openssl des3 -salt -k #PASSWORD# < oldfile.tar.gz > newfile.tar.gz


          if you want to replace the old file with the new encrypted version, then:



          openssl des3 -salt -k #PASSWORD# < oldfile.tar.gz > newfile.tar.gz && mv -f newfile.tar.gz oldfile.tar.gz





          share|improve this answer
























          • I might be trying to decrypt incorrectly, but when i use openssl des3 -d -k #PASSWORD# | tar -C tmp -xvf newfile.tar.gz there's an error: gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now error reading input file

            – Ned Schneebly
            Oct 24 '15 at 5:07











          • newfile.tar.gz needs to be read by openssl, not an arg to tar. openssl des3 -d -k #PASSWORD# < newfile.tar.gz | tar xvfz - -C tmp

            – cas
            Oct 24 '15 at 6:41
















          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%2f238298%2fencrypting-existing-tar-gz-archive%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          You can encrypt any existing file with the same encryption tool and options, using standard shell redirection. For example:



          openssl des3 -salt -k #PASSWORD# < oldfile.tar.gz > newfile.tar.gz


          if you want to replace the old file with the new encrypted version, then:



          openssl des3 -salt -k #PASSWORD# < oldfile.tar.gz > newfile.tar.gz && mv -f newfile.tar.gz oldfile.tar.gz





          share|improve this answer
























          • I might be trying to decrypt incorrectly, but when i use openssl des3 -d -k #PASSWORD# | tar -C tmp -xvf newfile.tar.gz there's an error: gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now error reading input file

            – Ned Schneebly
            Oct 24 '15 at 5:07











          • newfile.tar.gz needs to be read by openssl, not an arg to tar. openssl des3 -d -k #PASSWORD# < newfile.tar.gz | tar xvfz - -C tmp

            – cas
            Oct 24 '15 at 6:41


















          0














          You can encrypt any existing file with the same encryption tool and options, using standard shell redirection. For example:



          openssl des3 -salt -k #PASSWORD# < oldfile.tar.gz > newfile.tar.gz


          if you want to replace the old file with the new encrypted version, then:



          openssl des3 -salt -k #PASSWORD# < oldfile.tar.gz > newfile.tar.gz && mv -f newfile.tar.gz oldfile.tar.gz





          share|improve this answer
























          • I might be trying to decrypt incorrectly, but when i use openssl des3 -d -k #PASSWORD# | tar -C tmp -xvf newfile.tar.gz there's an error: gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now error reading input file

            – Ned Schneebly
            Oct 24 '15 at 5:07











          • newfile.tar.gz needs to be read by openssl, not an arg to tar. openssl des3 -d -k #PASSWORD# < newfile.tar.gz | tar xvfz - -C tmp

            – cas
            Oct 24 '15 at 6:41
















          0












          0








          0







          You can encrypt any existing file with the same encryption tool and options, using standard shell redirection. For example:



          openssl des3 -salt -k #PASSWORD# < oldfile.tar.gz > newfile.tar.gz


          if you want to replace the old file with the new encrypted version, then:



          openssl des3 -salt -k #PASSWORD# < oldfile.tar.gz > newfile.tar.gz && mv -f newfile.tar.gz oldfile.tar.gz





          share|improve this answer













          You can encrypt any existing file with the same encryption tool and options, using standard shell redirection. For example:



          openssl des3 -salt -k #PASSWORD# < oldfile.tar.gz > newfile.tar.gz


          if you want to replace the old file with the new encrypted version, then:



          openssl des3 -salt -k #PASSWORD# < oldfile.tar.gz > newfile.tar.gz && mv -f newfile.tar.gz oldfile.tar.gz






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Oct 24 '15 at 4:54









          cascas

          40.2k457107




          40.2k457107













          • I might be trying to decrypt incorrectly, but when i use openssl des3 -d -k #PASSWORD# | tar -C tmp -xvf newfile.tar.gz there's an error: gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now error reading input file

            – Ned Schneebly
            Oct 24 '15 at 5:07











          • newfile.tar.gz needs to be read by openssl, not an arg to tar. openssl des3 -d -k #PASSWORD# < newfile.tar.gz | tar xvfz - -C tmp

            – cas
            Oct 24 '15 at 6:41





















          • I might be trying to decrypt incorrectly, but when i use openssl des3 -d -k #PASSWORD# | tar -C tmp -xvf newfile.tar.gz there's an error: gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now error reading input file

            – Ned Schneebly
            Oct 24 '15 at 5:07











          • newfile.tar.gz needs to be read by openssl, not an arg to tar. openssl des3 -d -k #PASSWORD# < newfile.tar.gz | tar xvfz - -C tmp

            – cas
            Oct 24 '15 at 6:41



















          I might be trying to decrypt incorrectly, but when i use openssl des3 -d -k #PASSWORD# | tar -C tmp -xvf newfile.tar.gz there's an error: gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now error reading input file

          – Ned Schneebly
          Oct 24 '15 at 5:07





          I might be trying to decrypt incorrectly, but when i use openssl des3 -d -k #PASSWORD# | tar -C tmp -xvf newfile.tar.gz there's an error: gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now error reading input file

          – Ned Schneebly
          Oct 24 '15 at 5:07













          newfile.tar.gz needs to be read by openssl, not an arg to tar. openssl des3 -d -k #PASSWORD# < newfile.tar.gz | tar xvfz - -C tmp

          – cas
          Oct 24 '15 at 6:41







          newfile.tar.gz needs to be read by openssl, not an arg to tar. openssl des3 -d -k #PASSWORD# < newfile.tar.gz | tar xvfz - -C tmp

          – cas
          Oct 24 '15 at 6:41




















          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%2f238298%2fencrypting-existing-tar-gz-archive%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...