GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Small collection of scripts to manage wordpress
Homepage: http://people.warp.es/~koke/wordpress-scripts/
Clone URL: git://github.com/koke/wordpress-scripts.git
koke (author)
Fri May 23 09:52:30 -0700 2008
commit  f3a09d0af90b1f7893aac881f27d61c794639fe6
tree    97405aac9e57117030f7182ac3561dd4c141fd17
parent  f5cdab43758440c159da123976bcb47f618ad3d0
name age message
file .gitignore Tue May 13 14:43:01 -0700 2008 Added Makefile for release and upload [koke]
file Makefile Wed May 14 10:43:52 -0700 2008 Updated makefile to include wp-update-home [koke]
file README.markdown Wed May 14 13:10:12 -0700 2008 Updated README for v0.2 [koke]
file publish.sh Tue May 13 13:12:36 -0700 2008 Updated publish.sh to use config file [koke]
file wp-dump Wed May 14 12:26:19 -0700 2008 Add missing ; [koke]
file wp-import Wed May 14 12:26:19 -0700 2008 Add missing ; [koke]
file wp-update-home Fri May 23 09:52:30 -0700 2008 Support other than wp_ [koke]
README.markdown

wordpress-scripts

A small collection of utilities to manage wordpress installations. http://people.warp.es/~koke/wordpress-scripts/

Warning: these are early versions which I use for small tasks. If you find a bug or have suggestions, contact me at jbernal@warp.es

Scripts

wp-dump

wp-dump helps you to backup your wordpress database. Just tell where is the wordpress directory and where to put the dump file

Syntax

$ wp-dump wordpress-dir outfile

outfile will be a gzipped SQL dump, so you should use the .sql.gz extension

wp-import

wp-import helps you to restore your wordpress database. Just tell where is the wordpress directory and where to read the backup file

wp-import expects the backup to be a gzipped dump

Syntax

$ wp-import wordpress-dir infile

publish.sh

publish.sh is useful if you:

  • Manage your plugins with git
  • Want to publish versions to a remote server using scp

Syntax

$ publish.sh plugin_name version

publish.sh will replace version numbers in your code (see Requirements), tag the release with git, create a tarball and upload it to the specified server.

Requirements

First, you need a config file called ~/.wpplugins. An sample way to do this is

$ echo myserver.example.com:public_html/plugins/ > ~/.wpplugins

where myserver.example.com is your server and public_html/plugins/ is the path (relative from your $HOME) to upload the tarballs

publish.sh can also replace version numbers in your plugin. It will detect these two cases

  • Plugin header: Version 0.1
  • Version constant: define(plugin_name_version, ‘0.1’);

wp-update-home

When you are syncing wordpress databases, one of the fundamental things to change is the siteurl and home options with the remote URL.

Syntax

$ wp-update-home wordpress-dir myhost.example.com

License

(The MIT License)

Copyright (c) 2008 Jorge Bernal jbernal@warp.es

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.