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)
Wed May 14 11:49:55 -0700 2008
commit  1b9ed58e83429e788d43ced83f5281728133496a
tree    3c8a1bf7144f2dca5fea327a6e8b3240bca2ba01
parent  68405747e12269d68411fda82523b12250e96446
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 Tue May 13 15:39:51 -0700 2008 Fix typo in README [koke]
file publish.sh Tue May 13 13:12:36 -0700 2008 Updated publish.sh to use config file [koke]
file wp-dump Tue May 13 13:12:13 -0700 2008 first commit [koke]
file wp-import Tue May 13 13:12:13 -0700 2008 first commit [koke]
file wp-update-home Wed May 14 11:49:55 -0700 2008 Fix mysql options [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’);

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.