Download all content of a directory into an existing directory to override everything besides one or more...

Does fossil fuels use since 1990 account for half of all the fossil fuels used in history?

Why did Gandalf use a sword against the Balrog?

Can the government force you to change your license plate?

Annotating a table with arrows

Lengthened voiced stops and the airstream through the nose

Is it okay for a ticket seller in the USA to refuse to give you your change, keep it for themselves and claim it's a tip?

Why isn’t SHA-3 in wider use?

What does the phrase "pull off sick wheelies and flips" mean here?

What is a good class if we remove subclasses?

How does proof assistant organize knowledge?

Can a PC use the Levitate spell to avoid movement speed reduction from exhaustion?

Can sampling rate be a floating point number?

Is there a SQL/english like language that lets you define formulations given some data?

Word for an event that will likely never happen again

Redis Cache Shared Session Configuration

How can I categorize files in a directory based on their content?

Why is the result of ('b'+'a'+ + 'a' + 'a').toLowerCase() 'banana'?

Why aren't rainbows blurred-out into nothing after they are produced?

is this F 6'9 chord a figured bass or a chord extension?

What ability do tools use?

Plotting octahedron inside the sphere and sphere inside the cube

What is my malfunctioning AI harvesting from humans?

A continuous water "planet" ring around a star

Is it feasible to get a hash collision for CRC32, MD-5 and SHA-1 on one file?



Download all content of a directory into an existing directory to override everything besides one or more exceptions


How to download several urls into one fileHow to download all html files from a URL's directory with wget?Download one html page with all needed graphics and linked pdf/zip filesCan I use wget to download all files recursively, but not their actual content?Download a file from location using curl command into a child directory and save with a different name






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







1















I have a MediaWiki 1.32.0 website which I want to upgrade, hosted on a CentOS based "Shared Server" environment.

It is an all-core website with no added extensions, skins and images (besides logo)



To upgrade I need to change generally all files in the website's directory to those of a newer version's MediaWiki directory by a general overriding operation.



To download a fresh, latest copy of MediaWiki (as of 13/08/19) one could execute:



wget https://releases.wikimedia.org/mediawiki/1.33/mediawiki-1.33.0.tar.gz


In my existing website directory, there are these files I already edited and shouldn't override:





  1. LocalSettings.php

  2. robots.txt

  3. .htaccess


  4. example.com.png (logo image)


  5. googlec69e044fede13fdc.html (Google search console verification file)




How could I download-override a latest MediaWiki directory to the path of my existing website directory** to override all files besides these listed above?










share|improve this question































    1















    I have a MediaWiki 1.32.0 website which I want to upgrade, hosted on a CentOS based "Shared Server" environment.

    It is an all-core website with no added extensions, skins and images (besides logo)



    To upgrade I need to change generally all files in the website's directory to those of a newer version's MediaWiki directory by a general overriding operation.



    To download a fresh, latest copy of MediaWiki (as of 13/08/19) one could execute:



    wget https://releases.wikimedia.org/mediawiki/1.33/mediawiki-1.33.0.tar.gz


    In my existing website directory, there are these files I already edited and shouldn't override:





    1. LocalSettings.php

    2. robots.txt

    3. .htaccess


    4. example.com.png (logo image)


    5. googlec69e044fede13fdc.html (Google search console verification file)




    How could I download-override a latest MediaWiki directory to the path of my existing website directory** to override all files besides these listed above?










    share|improve this question



























      1












      1








      1








      I have a MediaWiki 1.32.0 website which I want to upgrade, hosted on a CentOS based "Shared Server" environment.

      It is an all-core website with no added extensions, skins and images (besides logo)



      To upgrade I need to change generally all files in the website's directory to those of a newer version's MediaWiki directory by a general overriding operation.



      To download a fresh, latest copy of MediaWiki (as of 13/08/19) one could execute:



      wget https://releases.wikimedia.org/mediawiki/1.33/mediawiki-1.33.0.tar.gz


      In my existing website directory, there are these files I already edited and shouldn't override:





      1. LocalSettings.php

      2. robots.txt

      3. .htaccess


      4. example.com.png (logo image)


      5. googlec69e044fede13fdc.html (Google search console verification file)




      How could I download-override a latest MediaWiki directory to the path of my existing website directory** to override all files besides these listed above?










      share|improve this question














      I have a MediaWiki 1.32.0 website which I want to upgrade, hosted on a CentOS based "Shared Server" environment.

      It is an all-core website with no added extensions, skins and images (besides logo)



      To upgrade I need to change generally all files in the website's directory to those of a newer version's MediaWiki directory by a general overriding operation.



      To download a fresh, latest copy of MediaWiki (as of 13/08/19) one could execute:



      wget https://releases.wikimedia.org/mediawiki/1.33/mediawiki-1.33.0.tar.gz


      In my existing website directory, there are these files I already edited and shouldn't override:





      1. LocalSettings.php

      2. robots.txt

      3. .htaccess


      4. example.com.png (logo image)


      5. googlec69e044fede13fdc.html (Google search console verification file)




      How could I download-override a latest MediaWiki directory to the path of my existing website directory** to override all files besides these listed above?







      centos upgrade curl wget mediawiki






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 9 hours ago









      JohnDoeaJohnDoea

      1081 gold badge11 silver badges45 bronze badges




      1081 gold badge11 silver badges45 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0














          Extracting the tarball you have in your question will create the directory mediawiki-1.33.0 which contains the following sub-directories:



          $ tree -dL 1 mediawiki-1.33.0
          mediawiki-1.33.0
          ├── cache
          ├── docs
          ├── extensions
          ├── images
          ├── includes
          ├── languages
          ├── maintenance
          ├── mw-config
          ├── resources
          ├── skins
          ├── tests
          └── vendor

          12 directories


          Assuming these are also the directories you need in a proper mediawiki installation, all you need to do is:





          1. Backup the files you want to keep



            cp LocalSettings.php robots.txt .htaccess example.com.png googlec69e044fede13fdc.html /some/other/path



          2. Extract the tarball



            tar xvzf mediawiki-1.33.0.tar.gz



          3. Copy the files to wherever they should be



            cp -r mediawiki-1.33.0/* /path/to/mediawiki/instrallation


            This will overwrite any existing files.




          4. Copy the backups back to their original locations



            cp /some/other/path/LocalSettings.php /original/path







          share|improve this answer




























            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%2f535217%2fdownload-all-content-of-a-directory-into-an-existing-directory-to-override-every%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














            Extracting the tarball you have in your question will create the directory mediawiki-1.33.0 which contains the following sub-directories:



            $ tree -dL 1 mediawiki-1.33.0
            mediawiki-1.33.0
            ├── cache
            ├── docs
            ├── extensions
            ├── images
            ├── includes
            ├── languages
            ├── maintenance
            ├── mw-config
            ├── resources
            ├── skins
            ├── tests
            └── vendor

            12 directories


            Assuming these are also the directories you need in a proper mediawiki installation, all you need to do is:





            1. Backup the files you want to keep



              cp LocalSettings.php robots.txt .htaccess example.com.png googlec69e044fede13fdc.html /some/other/path



            2. Extract the tarball



              tar xvzf mediawiki-1.33.0.tar.gz



            3. Copy the files to wherever they should be



              cp -r mediawiki-1.33.0/* /path/to/mediawiki/instrallation


              This will overwrite any existing files.




            4. Copy the backups back to their original locations



              cp /some/other/path/LocalSettings.php /original/path







            share|improve this answer






























              0














              Extracting the tarball you have in your question will create the directory mediawiki-1.33.0 which contains the following sub-directories:



              $ tree -dL 1 mediawiki-1.33.0
              mediawiki-1.33.0
              ├── cache
              ├── docs
              ├── extensions
              ├── images
              ├── includes
              ├── languages
              ├── maintenance
              ├── mw-config
              ├── resources
              ├── skins
              ├── tests
              └── vendor

              12 directories


              Assuming these are also the directories you need in a proper mediawiki installation, all you need to do is:





              1. Backup the files you want to keep



                cp LocalSettings.php robots.txt .htaccess example.com.png googlec69e044fede13fdc.html /some/other/path



              2. Extract the tarball



                tar xvzf mediawiki-1.33.0.tar.gz



              3. Copy the files to wherever they should be



                cp -r mediawiki-1.33.0/* /path/to/mediawiki/instrallation


                This will overwrite any existing files.




              4. Copy the backups back to their original locations



                cp /some/other/path/LocalSettings.php /original/path







              share|improve this answer




























                0












                0








                0







                Extracting the tarball you have in your question will create the directory mediawiki-1.33.0 which contains the following sub-directories:



                $ tree -dL 1 mediawiki-1.33.0
                mediawiki-1.33.0
                ├── cache
                ├── docs
                ├── extensions
                ├── images
                ├── includes
                ├── languages
                ├── maintenance
                ├── mw-config
                ├── resources
                ├── skins
                ├── tests
                └── vendor

                12 directories


                Assuming these are also the directories you need in a proper mediawiki installation, all you need to do is:





                1. Backup the files you want to keep



                  cp LocalSettings.php robots.txt .htaccess example.com.png googlec69e044fede13fdc.html /some/other/path



                2. Extract the tarball



                  tar xvzf mediawiki-1.33.0.tar.gz



                3. Copy the files to wherever they should be



                  cp -r mediawiki-1.33.0/* /path/to/mediawiki/instrallation


                  This will overwrite any existing files.




                4. Copy the backups back to their original locations



                  cp /some/other/path/LocalSettings.php /original/path







                share|improve this answer













                Extracting the tarball you have in your question will create the directory mediawiki-1.33.0 which contains the following sub-directories:



                $ tree -dL 1 mediawiki-1.33.0
                mediawiki-1.33.0
                ├── cache
                ├── docs
                ├── extensions
                ├── images
                ├── includes
                ├── languages
                ├── maintenance
                ├── mw-config
                ├── resources
                ├── skins
                ├── tests
                └── vendor

                12 directories


                Assuming these are also the directories you need in a proper mediawiki installation, all you need to do is:





                1. Backup the files you want to keep



                  cp LocalSettings.php robots.txt .htaccess example.com.png googlec69e044fede13fdc.html /some/other/path



                2. Extract the tarball



                  tar xvzf mediawiki-1.33.0.tar.gz



                3. Copy the files to wherever they should be



                  cp -r mediawiki-1.33.0/* /path/to/mediawiki/instrallation


                  This will overwrite any existing files.




                4. Copy the backups back to their original locations



                  cp /some/other/path/LocalSettings.php /original/path








                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 8 hours ago









                terdonterdon

                140k34 gold badges287 silver badges466 bronze badges




                140k34 gold badges287 silver badges466 bronze badges

































                    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%2f535217%2fdownload-all-content-of-a-directory-into-an-existing-directory-to-override-every%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...