WordPress Manual Upgrade for Experts: Difference between revisions

mNo edit summary
Line 38: Line 38:
find /var/www/html/WebSiteDirectory -type f -exec chmod 644 {} \;
find /var/www/html/WebSiteDirectory -type f -exec chmod 644 {} \;
</syntaxhighlight>
</syntaxhighlight>
*Copy the working version of the WordPress website files into the new directory (The below command will not overwrite any of the new files and will also preserve all permissions from the "working" WordPress files.  The end result is upgraded WordPress Files and any custom stuff in the same directory);<syntaxhighlight lang="text">
*Copy the working version of the WordPress website files into the new directory (The below command will not overwrite any of the new files and will also preserve all permissions from the "original / working" WordPress version.  The end result is a directory with upgraded WordPress Files and all of the additional or custom stuff from the original site;<syntaxhighlight lang="text">
cp -R -T -n -v -a -x /var/www/html/WebSiteDirectory.WorkingVersion/* /var/www/html/WebSiteDirectory  
cp -R -T -n -v -a -x /var/www/html/WebSiteDirectory.WorkingVersion/* /var/www/html/WebSiteDirectory
 
Don't forget the ASTERISK on the end of the Source.
Don't forget the ASTERISK on the end of the Source.
Flags can be combined, IE -Rnvax, but are shown separately for clarity.
Flags can be combined, IE -Rnvax, but are shown separately for clarity.