I have installed a cms (modx) on a webserver running CentOS 5 and Apache 2.2. Now there is a new version and I would like to update it. The instructions in the modx-wiki suggest to overwrite the existing files.
I've downloaded a .zip-File and extracted it. The existing installation sits in
html/cms/. The new files sit in
html/modx-2.1.1-pl/. I access the server through an ssh connection.
How do I move the new files to
html/cms/ while overwriting existing files and preserving files that are not part of the installation files? I already tried the
mv-command and read that
cp might be suitable.
When I tried
mv -ivt cms/ modx-2.1.1-pl/* it didn't work out. Subdirectories of
modx-2.1.1-pl/ haven't been moved.
How to do it right?