Skip to content

Commit

Permalink
update readme with documentation for file_item_count
Browse files Browse the repository at this point in the history
  • Loading branch information
jkudish committed Jun 20, 2012
1 parent b7cfda1 commit 00fba8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README
Expand Up @@ -6,17 +6,18 @@ Make sure to set $wordpress_root_dir and $_SERVER['HTTP_HOST'] according to your

Then execute the script with the following parameters ( brackets indicate optional parameters ):

php cli-exporter.php --blog=blogname --path=/tmp/ --user=admin [--start_date=2011-01-01] [--end_date=2011-12-31] [--post_type=post] [--author=admin] [--category=Uncategorized] [--post_status=publish] [--skip_comments=1]
php cli-exporter.php --blog=blogname --path=/tmp/ --user=admin [--start_date=2011-01-01] [--end_date=2011-12-31] [--post_type=post] [--author=admin] [-- * category=Uncategorized] [--post_status=publish] [--skip_comments=1] [--file_item_count=1000]

blogname: the name or blog_id of the blog you like to export
path: the full path to the directory where exports should be stored
user: the WordPress username that will run this export
user: the WordPress username or ID that will run this export
start_date: only export posts older than this date (format: YYYY-MM-DD)
end_date: only export posts newer than this date (format: YYYY-MM-DD)
post_type: export only posts matching this post_type
author: export only posts for this user_login or user_id
category: export only posts with this category name
post_status: export only posts with a particular post status
skip_comments: if this is set to 1 then comments will not be exported
file_item_count: how many items to include per file (will automatically break up into several files at the specified interval)

I hope this is useful. Feedback welcome at http://wp.me/p1lkCl-43Q

0 comments on commit 00fba8c

Please sign in to comment.