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;
}
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:
LocalSettings.php
robots.txt
.htaccess
example.com.png
(logo image)
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
add a comment |
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:
LocalSettings.php
robots.txt
.htaccess
example.com.png
(logo image)
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
add a comment |
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:
LocalSettings.php
robots.txt
.htaccess
example.com.png
(logo image)
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
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:
LocalSettings.php
robots.txt
.htaccess
example.com.png
(logo image)
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
centos upgrade curl wget mediawiki
asked 9 hours ago
JohnDoeaJohnDoea
1081 gold badge11 silver badges45 bronze badges
1081 gold badge11 silver badges45 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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:
Backup the files you want to keep
cp LocalSettings.php robots.txt .htaccess example.com.png googlec69e044fede13fdc.html /some/other/path
Extract the tarball
tar xvzf mediawiki-1.33.0.tar.gz
Copy the files to wherever they should be
cp -r mediawiki-1.33.0/* /path/to/mediawiki/instrallation
This will overwrite any existing files.
Copy the backups back to their original locations
cp /some/other/path/LocalSettings.php /original/path
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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:
Backup the files you want to keep
cp LocalSettings.php robots.txt .htaccess example.com.png googlec69e044fede13fdc.html /some/other/path
Extract the tarball
tar xvzf mediawiki-1.33.0.tar.gz
Copy the files to wherever they should be
cp -r mediawiki-1.33.0/* /path/to/mediawiki/instrallation
This will overwrite any existing files.
Copy the backups back to their original locations
cp /some/other/path/LocalSettings.php /original/path
add a comment |
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:
Backup the files you want to keep
cp LocalSettings.php robots.txt .htaccess example.com.png googlec69e044fede13fdc.html /some/other/path
Extract the tarball
tar xvzf mediawiki-1.33.0.tar.gz
Copy the files to wherever they should be
cp -r mediawiki-1.33.0/* /path/to/mediawiki/instrallation
This will overwrite any existing files.
Copy the backups back to their original locations
cp /some/other/path/LocalSettings.php /original/path
add a comment |
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:
Backup the files you want to keep
cp LocalSettings.php robots.txt .htaccess example.com.png googlec69e044fede13fdc.html /some/other/path
Extract the tarball
tar xvzf mediawiki-1.33.0.tar.gz
Copy the files to wherever they should be
cp -r mediawiki-1.33.0/* /path/to/mediawiki/instrallation
This will overwrite any existing files.
Copy the backups back to their original locations
cp /some/other/path/LocalSettings.php /original/path
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:
Backup the files you want to keep
cp LocalSettings.php robots.txt .htaccess example.com.png googlec69e044fede13fdc.html /some/other/path
Extract the tarball
tar xvzf mediawiki-1.33.0.tar.gz
Copy the files to wherever they should be
cp -r mediawiki-1.33.0/* /path/to/mediawiki/instrallation
This will overwrite any existing files.
Copy the backups back to their original locations
cp /some/other/path/LocalSettings.php /original/path
answered 8 hours ago
terdon♦terdon
140k34 gold badges287 silver badges466 bronze badges
140k34 gold badges287 silver badges466 bronze badges
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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