Quicker WordPress upgrades?
March 14, 2006 8:02 PM
Subscribe
I'm trying to keep up with WordPress upgrades (2.0.2 just came out yesterday, and I was only halfway through upgrading 30 installs to 2.0.1!), but I swear there must be an easier way than the way I'm doing it.
I run multiple installs of WordPress. I run them in renamed directories (domain.com/bob), rather than keeping the default (domain.com/wordpress). When a new version comes out, here's what I do at the command line:
1. Rename the directory ('bob' to 'bob.old').
2. Unpack the new version (tar -xvzf wordpress-x-x-x.tar.gz), which automatically puts itself in a directory called 'wordpress'.
3. Rename 'wordpress' to 'bob'.
4. Copy the wp-config.php, .htaccess, plugins, and assorted theme files from 'bob.old' to 'bob.'
Step four is a pain, and I frequently miss things I should have copied over, so I keep looking at step 2 and thinking there must be an easier way. The documentation says to just install the new files over the old files (and the installer uses filenames like wp-config-sample.php to make sure it doesn't overwrite your actual config file), but apart from FTP, how do I do that with the tar command? In other words, how can I tell tar to unpack the contents of the file into the pre-existing 'bob' rather than into a 'wordpress' directory?
I know there are other
WordPress gurus here, and I'm hoping I'm just missing something so blatantly obvious it'll hurt to read the answer.
posted by pzarquon to computers & internet (10 comments total)
posted by danb at 8:31 PM on March 14, 2006