<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Piranha Method &#187; code snippets</title>
	<atom:link href="http://www.piranhamethod.com/tag/code-snippets/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.piranhamethod.com</link>
	<description>Web Development &#38; Graphic Design Firm - Charlotte, Greenville, Charleston</description>
	<lastBuildDate>Wed, 14 Apr 2010 02:18:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Converting a UBB Forum to phpBB Fireboard Kunena</title>
		<link>http://www.piranhamethod.com/2009/11/converting-a-ubb-forum-to-phpbb-fireboard-kunena/</link>
		<comments>http://www.piranhamethod.com/2009/11/converting-a-ubb-forum-to-phpbb-fireboard-kunena/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 00:02:39 +0000</pubDate>
		<dc:creator>Matthew Cluver</dc:creator>
				<category><![CDATA[Development Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[code snippets]]></category>
		<category><![CDATA[Conversion]]></category>
		<category><![CDATA[Convert]]></category>
		<category><![CDATA[Fireboard]]></category>
		<category><![CDATA[Forum]]></category>
		<category><![CDATA[Kunena]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[phpBB]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[UBB]]></category>
		<category><![CDATA[UBB Classic]]></category>
		<category><![CDATA[UBB Threads]]></category>
		<category><![CDATA[UBB.x]]></category>
		<category><![CDATA[vBulletin]]></category>

		<guid isPermaLink="false">http://www.piranhamethod.com/?p=378</guid>
		<description><![CDATA[Recently I was tasked with converting a UBB classic (6.7.2) forum to Kunena (1.5.6). Initially I had thought about writing my own custom code to do the conversion, but the thought of parsing the flat files that UBB uses for their forum and member data especially turned me off (besides the amount of time it would have taken). Luckily the open source community had my back and after a lot of research I was able to find and get working several conversion scripts that I found online, these scripts with a little love will help you get out of that musty old perl-based UBB classic forum, once and for all.]]></description>
			<content:encoded><![CDATA[<p>Recently I was tasked with converting a UBB classic (6.7.2) forum to Kunena (1.5.6). Initially I had thought about writing my own custom code to do the conversion, but the thought of parsing the flat files that UBB uses for their forum and member data especially turned me off (besides the amount of time it would have taken).</p>
<p>Luckily the open source community had my back and after a lot of research I was able to find and get working several conversion scripts that I found online, these scripts with a little love will help you get out of that musty old perl-based UBB classic forum, once and for all.</p>
<p>The code (<a href="http://www.piranhamethod.com/downloads/UBB.x_Convertor_0.1.1.zip">UBB.x_Convertor_0.1.1</a>) that I found will work with all flavors of UBB forums, UBB.classic, UBB.threads and UBB.x, it will allow you to convert to phpBB 2.0.x, I used 2.0.23 and have included <a href="http://www.piranhamethod.com/downloads/phpBB-2.0.23.tar.gz">phpBB 2.0.23</a> for your convenience, I have also attached all of the other referenced documents for you as well.</p>
<p><strong>Convert UBB Classic 6.7.2 to phpBB 2.0.x</strong><br />
This is where the magic of the script that I found really shines, it reads the data from the UBB forum and flawlessly converts that data into phpBB and stores it in the MySQL database that phpBB is using, previously as most of you are aware, UBB uses flat files to store the forum data, finally getting that information into a database is exciting! I have also included some other <a href="http://www.piranhamethod.com/downloads/convert-ubb6-to-phpbb2.zip">converter code</a> originally developed by Genfect Media, which was the converter code that Graham Eames used to develop the <a href="http://www.piranhamethod.com/downloads/UBB.x_Convertor_0.1.1.zip">working version</a> (UBB.x Convertor 0.1.1) that I used.</p>
<p><strong>Convert phpBB 2.0.x to phpBB 3.0.x </strong><br />
Once you have converted your forum to phpBB 2.0.x, you are going to need to perform an upgrade to phpBB 3.0.x. This should be fairly simple and straightforward, just follow any phpBB upgrade documentation on their website to accomplish this conversion to a 3.0.x forum, here is a copy of <a href="http://www.piranhamethod.com/downloads/phpBB-3.0.6.zip">phpBB 3.0.6</a> for you to download and use.</p>
<p><strong>Convert UBB phpBB 3.0.x to Kunena 1.5.6</strong><br />
Once the forum has been upgraded to phpBB 3.0.x, you are now ready to convert it over to Kunena 1.5.6. Now <a href="http://www.piranhamethod.com/downloads/converter-phpbb3-to-kunena.zip">this script</a> was originally created to convert the phpBB data to a Fireboard forum, but since Kunena was developed from Fireboard, most of the infrastructure framework is the same still and I was able to successfully convert over to Kunena.</p>
<p>The important thing to note is that this script may require a little hacking to make it work for your specific environment, one thing I specifically remember having to adjust were the memory settings in my php.ini. This all depends on the amount of forum data that you&#8217;re working with though, make sure to also adjust the runtime of PHP scripts, as it could also take a while to run.</p>
<p>During my research I also came across this other <a href="http://www.piranhamethod.com/downloads/convert-phpbb-to-fireboard.zip">conversion code</a>, this may be helpful to you if you are having trouble with the converting the data. There is also good news if you&#8217;re wanting to go with a vBulletin solution in the long run instead of Kunena as the guys over at vBulletin have included their own conversion script for migrating directly from <a href="http://www.vbulletin.com/forum/showthread.php?48257-How-do-I-convert-UBB-to-VBB">UBB to vBulletin</a>.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share this:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://www.piranhamethod.com/feed/" title="RSS"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F11%2Fconverting-a-ubb-forum-to-phpbb-fireboard-kunena%2F&amp;partner=sociable" title="PDF"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F11%2Fconverting-a-ubb-forum-to-phpbb-fireboard-kunena%2F&amp;partner=sociable" title="Print"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Converting%20a%20UBB%20Forum%20to%20phpBB%20Fireboard%20Kunena&amp;url=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F11%2Fconverting-a-ubb-forum-to-phpbb-fireboard-kunena%2F" title="Slashdot"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F11%2Fconverting-a-ubb-forum-to-phpbb-fireboard-kunena%2F&amp;t=Converting%20a%20UBB%20Forum%20to%20phpBB%20Fireboard%20Kunena" title="Facebook"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F11%2Fconverting-a-ubb-forum-to-phpbb-fireboard-kunena%2F&amp;title=Converting%20a%20UBB%20Forum%20to%20phpBB%20Fireboard%20Kunena&amp;source=The+Piranha+Method+Web+Development+%26amp%3B+Graphic+Design+Firm+-+Charlotte%2C+Greenville%2C+Charleston&amp;summary=Recently%20I%20was%20tasked%20with%20converting%20a%20UBB%20classic%20%286.7.2%29%20forum%20to%20Kunena%20%281.5.6%29.%20Initially%20I%20had%20thought%20about%20writing%20my%20own%20custom%20code%20to%20do%20the%20conversion%2C%20but%20the%20thought%20of%20parsing%20the%20flat%20files%20that%20UBB%20uses%20for%20their%20forum%20and%20member%20data%20especially%20turned%20me%20off%20%28besides%20the%20amount%20of%20time%20it%20would%20have%20taken%29.%20Luckily%20the%20open%20source%20community%20had%20my%20back%20and%20after%20a%20lot%20of%20research%20I%20was%20able%20to%20find%20and%20get%20working%20several%20conversion%20scripts%20that%20I%20found%20online%2C%20these%20scripts%20with%20a%20little%20love%20will%20help%20you%20get%20out%20of%20that%20musty%20old%20perl-based%20UBB%20classic%20forum%2C%20once%20and%20for%20all." title="LinkedIn"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Converting%20a%20UBB%20Forum%20to%20phpBB%20Fireboard%20Kunena%20-%20http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F11%2Fconverting-a-ubb-forum-to-phpbb-fireboard-kunena%2F" title="Twitter"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F11%2Fconverting-a-ubb-forum-to-phpbb-fireboard-kunena%2F&amp;title=Converting%20a%20UBB%20Forum%20to%20phpBB%20Fireboard%20Kunena&amp;bodytext=Recently%20I%20was%20tasked%20with%20converting%20a%20UBB%20classic%20%286.7.2%29%20forum%20to%20Kunena%20%281.5.6%29.%20Initially%20I%20had%20thought%20about%20writing%20my%20own%20custom%20code%20to%20do%20the%20conversion%2C%20but%20the%20thought%20of%20parsing%20the%20flat%20files%20that%20UBB%20uses%20for%20their%20forum%20and%20member%20data%20especially%20turned%20me%20off%20%28besides%20the%20amount%20of%20time%20it%20would%20have%20taken%29.%20Luckily%20the%20open%20source%20community%20had%20my%20back%20and%20after%20a%20lot%20of%20research%20I%20was%20able%20to%20find%20and%20get%20working%20several%20conversion%20scripts%20that%20I%20found%20online%2C%20these%20scripts%20with%20a%20little%20love%20will%20help%20you%20get%20out%20of%20that%20musty%20old%20perl-based%20UBB%20classic%20forum%2C%20once%20and%20for%20all." title="Digg"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F11%2Fconverting-a-ubb-forum-to-phpbb-fireboard-kunena%2F&amp;title=Converting%20a%20UBB%20Forum%20to%20phpBB%20Fireboard%20Kunena&amp;notes=Recently%20I%20was%20tasked%20with%20converting%20a%20UBB%20classic%20%286.7.2%29%20forum%20to%20Kunena%20%281.5.6%29.%20Initially%20I%20had%20thought%20about%20writing%20my%20own%20custom%20code%20to%20do%20the%20conversion%2C%20but%20the%20thought%20of%20parsing%20the%20flat%20files%20that%20UBB%20uses%20for%20their%20forum%20and%20member%20data%20especially%20turned%20me%20off%20%28besides%20the%20amount%20of%20time%20it%20would%20have%20taken%29.%20Luckily%20the%20open%20source%20community%20had%20my%20back%20and%20after%20a%20lot%20of%20research%20I%20was%20able%20to%20find%20and%20get%20working%20several%20conversion%20scripts%20that%20I%20found%20online%2C%20these%20scripts%20with%20a%20little%20love%20will%20help%20you%20get%20out%20of%20that%20musty%20old%20perl-based%20UBB%20classic%20forum%2C%20once%20and%20for%20all." title="del.icio.us"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F11%2Fconverting-a-ubb-forum-to-phpbb-fireboard-kunena%2F&amp;title=Converting%20a%20UBB%20Forum%20to%20phpBB%20Fireboard%20Kunena&amp;annotation=Recently%20I%20was%20tasked%20with%20converting%20a%20UBB%20classic%20%286.7.2%29%20forum%20to%20Kunena%20%281.5.6%29.%20Initially%20I%20had%20thought%20about%20writing%20my%20own%20custom%20code%20to%20do%20the%20conversion%2C%20but%20the%20thought%20of%20parsing%20the%20flat%20files%20that%20UBB%20uses%20for%20their%20forum%20and%20member%20data%20especially%20turned%20me%20off%20%28besides%20the%20amount%20of%20time%20it%20would%20have%20taken%29.%20Luckily%20the%20open%20source%20community%20had%20my%20back%20and%20after%20a%20lot%20of%20research%20I%20was%20able%20to%20find%20and%20get%20working%20several%20conversion%20scripts%20that%20I%20found%20online%2C%20these%20scripts%20with%20a%20little%20love%20will%20help%20you%20get%20out%20of%20that%20musty%20old%20perl-based%20UBB%20classic%20forum%2C%20once%20and%20for%20all." title="Google Bookmarks"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F11%2Fconverting-a-ubb-forum-to-phpbb-fireboard-kunena%2F&amp;t=Converting%20a%20UBB%20Forum%20to%20phpBB%20Fireboard%20Kunena" title="MySpace"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F11%2Fconverting-a-ubb-forum-to-phpbb-fireboard-kunena%2F&amp;title=Converting%20a%20UBB%20Forum%20to%20phpBB%20Fireboard%20Kunena" title="StumbleUpon"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F11%2Fconverting-a-ubb-forum-to-phpbb-fireboard-kunena%2F" title="Technorati"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F11%2Fconverting-a-ubb-forum-to-phpbb-fireboard-kunena%2F&amp;t=Converting%20a%20UBB%20Forum%20to%20phpBB%20Fireboard%20Kunena" title="HackerNews"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/hackernews.png" title="HackerNews" alt="HackerNews" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.piranhamethod.com/2009/11/converting-a-ubb-forum-to-phpbb-fireboard-kunena/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla 1.5 Bulk User Import CSV using PHP Script</title>
		<link>http://www.piranhamethod.com/2009/05/joomla-15-bulk-user-import-csv-using-php-script/</link>
		<comments>http://www.piranhamethod.com/2009/05/joomla-15-bulk-user-import-csv-using-php-script/#comments</comments>
		<pubDate>Thu, 28 May 2009 04:09:01 +0000</pubDate>
		<dc:creator>Matthew Cluver</dc:creator>
				<category><![CDATA[Development Blog]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[code snippets]]></category>
		<category><![CDATA[joomla tips]]></category>
		<category><![CDATA[php scripts]]></category>

		<guid isPermaLink="false">http://www.piranhamethod.com/?p=297</guid>
		<description><![CDATA[While doing some work tonight, I came across a handy little script that is useful for importing users in bulk into Joomla using CSV files. This is very useful if your are moving user information from another content management system (CMS) into Joomla 1.5.]]></description>
			<content:encoded><![CDATA[<p>While doing some work tonight, I came across a handy little script that is useful for importing users in bulk into Joomla using CSV files. This is very useful if your are moving user information from another content management system (CMS) into Joomla 1.5.</p>
<p><span id="more-297"></span></p>
<pre name="code" class="php">
< ?php

// Hande form upload
if(isset($_POST['import'])) {

$mysql_host = trim($_POST['mysql_host']);
$mysql_user = trim($_POST['mysql_username']);
$mysql_password = trim($_POST['mysql_password']);
$mysql_schema = trim($_POST['mysql_schema']);

$table_prefix = trim($_POST['table_prefix']);

if(!mysql_connect($mysql_host, $mysql_user, $mysql_password) || !mysql_select_db($mysql_schema)) {
echo â€˜Supplied MySQL details were incorrect - abortingâ€™;
return;
}

// Get the joomla groups
$sql = sprintf(â€˜
SELECT  `id`, `value`
FROM    `%score_acl_aro_groups`
â€˜,
$table_prefix
);
$rs = mysql_query($sql);
$groups = array();
while($group = mysql_fetch_object($rs)) {
$groups[$group->value] = $group->id;
}

$fp = fopen($_FILES['csv']['tmp_name'], â€˜râ€™);
while($user = fgetcsv($fp)) {

printf(â€˜Importing â€%sâ€ â€¦ â€™, $user[0]);

// Lookup and verify user group
if(!isset($groups[$user[4]])) {
printf(â€˜error: Invalid group (%s) for %s. Defaulting to <code>Registered</code>%sâ€™, $user[4], $user[0], PHP_EOL);
$user[4] = â€˜Registeredâ€™;
}

// Insert record into wsers
$sql = sprintf(â€˜
INSERT INTO `%susers`
SET
`name`            = â€%sâ€,
`username`        = â€%sâ€,
`email`           = â€%sâ€,
`password`        = â€%sâ€,
`usertype`        = â€%sâ€,
`block`           = â€%sâ€,
`sendEmail`       = â€%sâ€,
`gid`             = â€%sâ€,
`registerDate`    = NOW(),
`lastvisitDate`   = â€0000-00-00 00:00:00â€³,
`activation`      = â€",
`params`          = â€"
â€˜,
$table_prefix,
sql_prep($user[0]),
sql_prep($user[1]),
sql_prep($user[2]),
isset($_POST['md5_passwords']) ? md5($user[3]) : sql_prep($user[3]),
sql_prep($user[4]),
sql_prep($user[5]),
sql_prep($user[6]),
$groups[$user[4]]
);
mysql_query($sql);
// Get back ther userâ€™s ID
list($user_id) = mysql_fetch_row(mysql_query(â€˜SELECT LAST_INSERT_ID()â€™));

// Insert record into core_acl_aro
$sql = sprintf(â€˜
INSERT INTO `%score_acl_aro`
SET
`section_value`   = â€usersâ€,
`value`           = %d,
`name`            = â€%sâ€
â€˜,
$table_prefix,
$user_id,
sql_prep($user[0])
);
mysql_query($sql);

// Insert record into core_acl_groups_aro_map
$sql = sprintf(â€˜
INSERT INTO `%score_acl_groups_aro_map`
SET
`group_id`        = %d,
`aro_id`          = LAST_INSERT_ID()
â€˜,
$table_prefix,
$groups[$user[4]]
);
mysql_query($sql);

echo â€˜done.â€™;
flush();
}

echo â€˜

<strong>Done</strong>â€™;

} else {
// show upload form
?>
<html><head></head><body>
<h1>Import Users to Joomla</h1>


Use this script to do a bulk import of users into Joomla 1.5.
Upload a CSV file with the following format:
<code>
name, username, email, password, usertype, block, send_email
</code>
Wrap details with commas in them in quotes.

<hr />
<form action=â€/index.phpâ€œ method=â€postâ€ enctype=â€multipart/form-dataâ€>
<input type=â€hiddenâ€ name=â€importâ€ value=â€1â€³ />
<table cellpadding=â€4pxâ€>
<tr>
<td>CSV File: </td>
<td>
<input type=â€fileâ€ name=â€csvâ€ /></td>
</tr>
<tr>
<td>MD5 Hash Passwords: </td>
<td>
<input type=â€checkboxâ€ name=â€md5_passwordsâ€ /><small>*Check this option if the passwords in your CSV are in plain text</small></td>
</tr>
<tr>
<td>Joomla Table Prefix: </td>
<td>
<input type=â€textâ€ name=â€table_prefixâ€ value=â€jos_â€ /></td>
</tr>
<tr>
<td>Joomla Database Name: </td>
<td>
<input type=â€textâ€ name=â€mysql_schemaâ€ value=â€joomlaâ€ /></td>
</tr>
<tr>
<td>MySQL Host: </td>
<td>
<input type=â€textâ€ name=â€mysql_hostâ€ value=â€localhostâ€ /></td>
</tr>
<tr>
<td>MySQL Username: </td>
<td>
<input type=â€textâ€ name=â€mysql_usernameâ€ value=â€" /></td>
</tr>
<tr>
<td>MySQL Password: </td>
<td>
<input type=â€textâ€ name=â€mysql_passwordâ€ value=â€" /></td>
</tr>
<tr>
<td></td>
<td>
<input type=â€submitâ€ name=â€submitâ€ value=â€ Import Users! â€ /></td>
</tr>
</table>
</form>

</body></html>
< ?php
}

function sql_prep($var) {
return mysql_real_escape_string($var);
}
?>
</pre>
<link type="text/css" rel="stylesheet" href="css/SyntaxHighlighter.css"></link>
<script language="javascript" src="js/shCore.js"></script><br />
<script language="javascript" src="js/shBrushCSharp.js"></script><br />
<script language="javascript" src="js/shBrushXml.js"></script><br />
<script language="javascript">
dp.SyntaxHighlighter.ClipboardSwf = '/flash/clipboard.swf';
dp.SyntaxHighlighter.HighlightAll('code');
</script></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share this:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://www.piranhamethod.com/feed/" title="RSS"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F05%2Fjoomla-15-bulk-user-import-csv-using-php-script%2F&amp;partner=sociable" title="PDF"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F05%2Fjoomla-15-bulk-user-import-csv-using-php-script%2F&amp;partner=sociable" title="Print"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Joomla%201.5%20Bulk%20User%20Import%20CSV%20using%20PHP%20Script&amp;url=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F05%2Fjoomla-15-bulk-user-import-csv-using-php-script%2F" title="Slashdot"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F05%2Fjoomla-15-bulk-user-import-csv-using-php-script%2F&amp;t=Joomla%201.5%20Bulk%20User%20Import%20CSV%20using%20PHP%20Script" title="Facebook"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F05%2Fjoomla-15-bulk-user-import-csv-using-php-script%2F&amp;title=Joomla%201.5%20Bulk%20User%20Import%20CSV%20using%20PHP%20Script&amp;source=The+Piranha+Method+Web+Development+%26amp%3B+Graphic+Design+Firm+-+Charlotte%2C+Greenville%2C+Charleston&amp;summary=While%20doing%20some%20work%20tonight%2C%20I%20came%20across%20a%20handy%20little%20script%20that%20is%20useful%20for%20importing%20users%20in%20bulk%20into%20Joomla%20using%20CSV%20files.%20This%20is%20very%20useful%20if%20your%20are%20moving%20user%20information%20from%20another%20content%20management%20system%20%28CMS%29%20into%20Joomla%201.5." title="LinkedIn"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Joomla%201.5%20Bulk%20User%20Import%20CSV%20using%20PHP%20Script%20-%20http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F05%2Fjoomla-15-bulk-user-import-csv-using-php-script%2F" title="Twitter"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F05%2Fjoomla-15-bulk-user-import-csv-using-php-script%2F&amp;title=Joomla%201.5%20Bulk%20User%20Import%20CSV%20using%20PHP%20Script&amp;bodytext=While%20doing%20some%20work%20tonight%2C%20I%20came%20across%20a%20handy%20little%20script%20that%20is%20useful%20for%20importing%20users%20in%20bulk%20into%20Joomla%20using%20CSV%20files.%20This%20is%20very%20useful%20if%20your%20are%20moving%20user%20information%20from%20another%20content%20management%20system%20%28CMS%29%20into%20Joomla%201.5." title="Digg"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F05%2Fjoomla-15-bulk-user-import-csv-using-php-script%2F&amp;title=Joomla%201.5%20Bulk%20User%20Import%20CSV%20using%20PHP%20Script&amp;notes=While%20doing%20some%20work%20tonight%2C%20I%20came%20across%20a%20handy%20little%20script%20that%20is%20useful%20for%20importing%20users%20in%20bulk%20into%20Joomla%20using%20CSV%20files.%20This%20is%20very%20useful%20if%20your%20are%20moving%20user%20information%20from%20another%20content%20management%20system%20%28CMS%29%20into%20Joomla%201.5." title="del.icio.us"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F05%2Fjoomla-15-bulk-user-import-csv-using-php-script%2F&amp;title=Joomla%201.5%20Bulk%20User%20Import%20CSV%20using%20PHP%20Script&amp;annotation=While%20doing%20some%20work%20tonight%2C%20I%20came%20across%20a%20handy%20little%20script%20that%20is%20useful%20for%20importing%20users%20in%20bulk%20into%20Joomla%20using%20CSV%20files.%20This%20is%20very%20useful%20if%20your%20are%20moving%20user%20information%20from%20another%20content%20management%20system%20%28CMS%29%20into%20Joomla%201.5." title="Google Bookmarks"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F05%2Fjoomla-15-bulk-user-import-csv-using-php-script%2F&amp;t=Joomla%201.5%20Bulk%20User%20Import%20CSV%20using%20PHP%20Script" title="MySpace"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F05%2Fjoomla-15-bulk-user-import-csv-using-php-script%2F&amp;title=Joomla%201.5%20Bulk%20User%20Import%20CSV%20using%20PHP%20Script" title="StumbleUpon"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F05%2Fjoomla-15-bulk-user-import-csv-using-php-script%2F" title="Technorati"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F05%2Fjoomla-15-bulk-user-import-csv-using-php-script%2F&amp;t=Joomla%201.5%20Bulk%20User%20Import%20CSV%20using%20PHP%20Script" title="HackerNews"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/hackernews.png" title="HackerNews" alt="HackerNews" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.piranhamethod.com/2009/05/joomla-15-bulk-user-import-csv-using-php-script/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>OpenVZ Container Weekly Bash Backup Script: VZDUMP</title>
		<link>http://www.piranhamethod.com/2009/03/openvz-container-weekly-bash-backup-script/</link>
		<comments>http://www.piranhamethod.com/2009/03/openvz-container-weekly-bash-backup-script/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 08:35:12 +0000</pubDate>
		<dc:creator>Matthew Cluver</dc:creator>
				<category><![CDATA[Debian Linux]]></category>
		<category><![CDATA[Development Blog]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[code snippets]]></category>
		<category><![CDATA[container]]></category>
		<category><![CDATA[openvz]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[ve]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[vzdump]]></category>

		<guid isPermaLink="false">http://www.piranhamethod.com/?p=183</guid>
		<description><![CDATA[This is a handy backup script that will once a week perform a vzdump operation on your HN, thus dumping an imaged copy of all of your virtual machines, then uploading them all to the FTP server of your choice using ncftpput.]]></description>
			<content:encoded><![CDATA[<p>This is a handy backup script that will once a week perform a vzdump operation on your HN, thus dumping an imaged copy of all of your virtual machines, then uploading them all to the FTP server of your choice using ncftpput.<br />
<span id="more-183"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;"># Container backup script</span>
&nbsp;
<span style="color: #666666; font-style: italic;">### System Setup ###</span>
<span style="color: #007800;">BACKUP</span>=<span style="color: #000000; font-weight: bold;">/</span>vz<span style="color: #000000; font-weight: bold;">/</span>backup.<span style="color: #007800;">$$</span>
<span style="color: #007800;">NOW</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #ff0000;">&quot;%Y-%m-%d&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">LAST</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #000000; font-weight: bold;">%</span>Y-<span style="color: #000000; font-weight: bold;">%</span>m-<span style="color: #000000; font-weight: bold;">%</span>d <span style="color: #660033;">-d</span> <span style="color: #ff0000;">'-7 days'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">DAY</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #ff0000;">&quot;%a&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">HOSTNAME</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$(hostname)</span>&quot;</span>
<span style="color: #007800;">DUMP</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$(which vzdump)</span>&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">### FTP server Setup ###</span>
<span style="color: #007800;">FTPD</span>=<span style="color: #ff0000;">&quot;/backups&quot;</span>
<span style="color: #007800;">FTPU</span>=<span style="color: #ff0000;">&quot;username&quot;</span>
<span style="color: #007800;">FTPP</span>=<span style="color: #ff0000;">&quot;password&quot;</span>
<span style="color: #007800;">FTPS</span>=<span style="color: #ff0000;">&quot;xxx.xxx.xxx.xxx&quot;</span>
<span style="color: #007800;">NCFTP</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$(which ncftp)</span>&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">### Other stuff ###</span>
<span style="color: #007800;">EMAILID</span>=<span style="color: #ff0000;">&quot;support@hostname.com&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">### Start Backup for file system ###</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-d</span> <span style="color: #007800;">$BACKUP</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #007800;">$BACKUP</span> <span style="color: #000000; font-weight: bold;">||</span> :
&nbsp;
<span style="color: #007800;">$DUMP</span> <span style="color: #660033;">--exclude-path</span> <span style="color: #ff0000;">'.+/log/.+'</span> <span style="color: #660033;">--exclude-path</span> <span style="color: #ff0000;">'.+/bak/.+'</span> <span style="color: #660033;">--exclude-path</span> <span style="color: #ff0000;">'/tmp/.+'</span> <span style="color: #660033;">--exclude-path</span> <span style="color: #ff0000;">'/var/tmp/.+'</span> <span style="color: #660033;">--exclude-path</span> <span style="color: #ff0000;">'/var/run/.+pid'</span> <span style="color: #660033;">--stop</span> <span style="color: #660033;">--dumpdir</span>=<span style="color: #007800;">$BACKUP</span> <span style="color: #660033;">--compress</span> <span style="color: #660033;">--all</span>
&nbsp;
<span style="color: #666666; font-style: italic;">### Dump backup using FTP ###</span>
<span style="color: #666666; font-style: italic;">#Start FTP backup using ncftp</span>
<span style="color: #007800;">$NCFTP</span> <span style="color: #660033;">-u</span><span style="color: #ff0000;">&quot;<span style="color: #007800;">$FTPU</span>&quot;</span> <span style="color: #660033;">-p</span><span style="color: #ff0000;">&quot;<span style="color: #007800;">$FTPP</span>&quot;</span> <span style="color: #007800;">$FTPS</span> <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #000000; font-weight: bold;">&lt;</span> EOF
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #007800;">$FTPD</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$NOW</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #007800;">$FTPD</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$NOW</span>
lcd <span style="color: #007800;">$BACKUP</span>
mput <span style="color: #000000; font-weight: bold;">*</span>
<span style="color: #c20cb9; font-weight: bold;">rmdir</span> <span style="color: #007800;">$FTPD</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$LAST</span>
quit
EOF
&nbsp;
<span style="color: #666666; font-style: italic;">### Find out if ftp backup failed or not ###</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;$?&quot;</span> == <span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #007800;">$BACKUP</span>
<span style="color: #000000; font-weight: bold;">else</span>
<span style="color: #007800;">T</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>backup.fail
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Date: <span style="color: #007800;">$(date)</span>&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #007800;">$T</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Hostname: <span style="color: #007800;">$(hostname)</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span><span style="color: #007800;">$T</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Backup failed&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span><span style="color: #007800;">$T</span>
mail <span style="color: #660033;">-s</span> <span style="color: #ff0000;">&quot;BACKUP FAILED&quot;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$EMAILID</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #007800;">$T</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #007800;">$T</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></td></tr></table></div>

</pre>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share this:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://www.piranhamethod.com/feed/" title="RSS"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F03%2Fopenvz-container-weekly-bash-backup-script%2F&amp;partner=sociable" title="PDF"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F03%2Fopenvz-container-weekly-bash-backup-script%2F&amp;partner=sociable" title="Print"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=OpenVZ%20Container%20Weekly%20Bash%20Backup%20Script%3A%20VZDUMP&amp;url=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F03%2Fopenvz-container-weekly-bash-backup-script%2F" title="Slashdot"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F03%2Fopenvz-container-weekly-bash-backup-script%2F&amp;t=OpenVZ%20Container%20Weekly%20Bash%20Backup%20Script%3A%20VZDUMP" title="Facebook"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F03%2Fopenvz-container-weekly-bash-backup-script%2F&amp;title=OpenVZ%20Container%20Weekly%20Bash%20Backup%20Script%3A%20VZDUMP&amp;source=The+Piranha+Method+Web+Development+%26amp%3B+Graphic+Design+Firm+-+Charlotte%2C+Greenville%2C+Charleston&amp;summary=This%20is%20a%20handy%20backup%20script%20that%20will%20once%20a%20week%20perform%20a%20vzdump%20operation%20on%20your%20HN%2C%20thus%20dumping%20an%20imaged%20copy%20of%20all%20of%20your%20virtual%20machines%2C%20then%20uploading%20them%20all%20to%20the%20FTP%20server%20of%20your%20choice%20using%20ncftpput." title="LinkedIn"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=OpenVZ%20Container%20Weekly%20Bash%20Backup%20Script%3A%20VZDUMP%20-%20http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F03%2Fopenvz-container-weekly-bash-backup-script%2F" title="Twitter"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F03%2Fopenvz-container-weekly-bash-backup-script%2F&amp;title=OpenVZ%20Container%20Weekly%20Bash%20Backup%20Script%3A%20VZDUMP&amp;bodytext=This%20is%20a%20handy%20backup%20script%20that%20will%20once%20a%20week%20perform%20a%20vzdump%20operation%20on%20your%20HN%2C%20thus%20dumping%20an%20imaged%20copy%20of%20all%20of%20your%20virtual%20machines%2C%20then%20uploading%20them%20all%20to%20the%20FTP%20server%20of%20your%20choice%20using%20ncftpput." title="Digg"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F03%2Fopenvz-container-weekly-bash-backup-script%2F&amp;title=OpenVZ%20Container%20Weekly%20Bash%20Backup%20Script%3A%20VZDUMP&amp;notes=This%20is%20a%20handy%20backup%20script%20that%20will%20once%20a%20week%20perform%20a%20vzdump%20operation%20on%20your%20HN%2C%20thus%20dumping%20an%20imaged%20copy%20of%20all%20of%20your%20virtual%20machines%2C%20then%20uploading%20them%20all%20to%20the%20FTP%20server%20of%20your%20choice%20using%20ncftpput." title="del.icio.us"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F03%2Fopenvz-container-weekly-bash-backup-script%2F&amp;title=OpenVZ%20Container%20Weekly%20Bash%20Backup%20Script%3A%20VZDUMP&amp;annotation=This%20is%20a%20handy%20backup%20script%20that%20will%20once%20a%20week%20perform%20a%20vzdump%20operation%20on%20your%20HN%2C%20thus%20dumping%20an%20imaged%20copy%20of%20all%20of%20your%20virtual%20machines%2C%20then%20uploading%20them%20all%20to%20the%20FTP%20server%20of%20your%20choice%20using%20ncftpput." title="Google Bookmarks"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F03%2Fopenvz-container-weekly-bash-backup-script%2F&amp;t=OpenVZ%20Container%20Weekly%20Bash%20Backup%20Script%3A%20VZDUMP" title="MySpace"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F03%2Fopenvz-container-weekly-bash-backup-script%2F&amp;title=OpenVZ%20Container%20Weekly%20Bash%20Backup%20Script%3A%20VZDUMP" title="StumbleUpon"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F03%2Fopenvz-container-weekly-bash-backup-script%2F" title="Technorati"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Fwww.piranhamethod.com%2F2009%2F03%2Fopenvz-container-weekly-bash-backup-script%2F&amp;t=OpenVZ%20Container%20Weekly%20Bash%20Backup%20Script%3A%20VZDUMP" title="HackerNews"><img src="http://www.piranhamethod.com/wp-content/plugins/sociable/images/hackernews.png" title="HackerNews" alt="HackerNews" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.piranhamethod.com/2009/03/openvz-container-weekly-bash-backup-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
