<?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>Blog dot Melimato dot Com &#187; Plesk</title>
	<atom:link href="http://blog.melimato.com/tag/plesk/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.melimato.com</link>
	<description>Those things we do</description>
	<lastBuildDate>Thu, 24 Dec 2009 11:58:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Restore / uncompress a plesk backup file using terminal</title>
		<link>http://blog.melimato.com/restore-uncompress-a-plesk-backup-file-using-terminal/</link>
		<comments>http://blog.melimato.com/restore-uncompress-a-plesk-backup-file-using-terminal/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 16:51:00 +0000</pubDate>
		<dc:creator>pablo</dc:creator>
				<category><![CDATA[Plesk]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[compress]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[mpack]]></category>
		<category><![CDATA[restore]]></category>

		<guid isPermaLink="false">http://blog.melimato.com/?p=190</guid>
		<description><![CDATA[Today I was had to move a few web sites from one server to another. As I did not have ssh or ftp access to it, the only way to do it was through Plesk. As I don&#8217;t have experience using Plesk, I did not know that Plesk&#8217;s built in File Explorer can only be [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was had to move a few web sites from one server to another. As I did not have ssh or ftp access to it, the only way to do it was through <a href="http://www.parallels.com/es/products/plesk/">Plesk</a>. As I don&#8217;t have experience using Plesk, I did not know that Plesk&#8217;s built in File Explorer can only be used to manage your web site&#8217;s files within the server, but it does not let you download those files. So, looking around Plesk&#8217;s admin interface I found the backup feature. That looked promissing, so I clicked on it and it brought me to another page called &#8220;Backup Manager&#8221;. This page allows you to set up periodic or one time backups. Backups can be saved in Plesk&#8217;s local repository or in an external FTP server. So I set up all the FTP details and start the backup. Once the backup finished I tried to open it on a linux box and file-roller gave an error when it tried to extract it. A `file` showed that the file was indeed in gzip format.</p>
<p><span id="more-190"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">file</span> mydomain.com_2009.11.02_13.07
mydomain.com_2009.11.02_13.07: <span style="color: #c20cb9; font-weight: bold;">gzip</span> compressed data, from Unix, <span style="color: #c20cb9; font-weight: bold;">last</span> modified: Mon Nov  <span style="color: #000000;">2</span> <span style="color: #000000;">13</span>:08:<span style="color: #000000;">11</span> <span style="color: #000000;">2009</span></pre></div></div>

<p>Being a gzip file I obviously tried to gunzip it, but again no luck</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">gunzip</span> mydomain.com_2009.11.02_13.07
<span style="color: #c20cb9; font-weight: bold;">gunzip</span> mydomain.com_2009.11.02_13.07
<span style="color: #c20cb9; font-weight: bold;">gzip</span>: mydomain.com_2009.11.02_13.07: unknown suffix <span style="color: #660033;">--</span> ignored</pre></div></div>

<p>After googling around for a quite a while I did not find out what this &#8220;unknown suffix&#8221; error meant, but instead I found on the <a href="http://kb.parallels.com/en/1757">Parallels Knowledge Base</a> how to do it. I&#8217;m copying/pasting it below for future reference:</p>
<blockquote><p>
II. SECOND WAY:</p>
<p>It can be done using mpack tools to work with MIME files. This packet is included into Debian:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># apt-get install mpack</span></pre></div></div>

<p>For other Linux systems you can try to use RPM from ALT Linux:<br />
ftp://ftp.pbone.net/mirror/ftp.altlinux.ru/pub/distributions/ALTLinux/Sisyphus/files/i586/RPMS/mpack-1.6-alt1.i586.rpm<br />
or compile mpack from the sources: http://ftp.andrew.cmu.edu/pub/mpack/.<br />
 &#8211; Create an empty directory to extract the back up file:<br />
# mkdir recover<br />
# cd recover</p>
<p>and copy backup into it. By default Plesk backup is gzipped (if not, use cat), so run zcat to pass data to munpack to extract content  of directories from the backup file:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># zcat DUMP_FILE.gz &gt; DUMP_FILE </span>
<span style="color: #666666; font-style: italic;"># cat DUMP_FILE | munpack</span></pre></div></div>

<p> In result you get the set of tar and sql files that contain domains&#8217; directories and databases. Untar the needed directory. For example if you need to restore the httpdocs folder for the DOMAIN.TLD domain:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># tar xvf DOMAIN.TLD.htdocs</span></pre></div></div>

</blockquote>
<p>That did it, after untaring the htdocs file I finnaly got what I wanted. Hope that saves someone some time.</p>
<div id="wherego_related"> </div>]]></content:encoded>
			<wfw:commentRss>http://blog.melimato.com/restore-uncompress-a-plesk-backup-file-using-terminal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
