<?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>Le Vosgien du Net &#187; ssh</title>
	<atom:link href="http://levosgien.net/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://levosgien.net</link>
	<description>Parce que la vérité n'est pas toujours bonne à dire</description>
	<lastBuildDate>Thu, 11 Feb 2010 18:39:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Tunnelling a Firebird Backup with SSH</title>
		<link>http://levosgien.net/2009/06/17/tunnelling-a-firebird-backup-with-ssh/</link>
		<comments>http://levosgien.net/2009/06/17/tunnelling-a-firebird-backup-with-ssh/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 14:43:07 +0000</pubDate>
		<dc:creator>Pierre</dc:creator>
				<category><![CDATA[Geekitude]]></category>
		<category><![CDATA[Vôsgitude]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[firebird]]></category>
		<category><![CDATA[restore]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tunnel]]></category>

		<guid isPermaLink="false">http://levosgien.net/?p=159</guid>
		<description><![CDATA[	SSH is a wonderful piece of software. I found (hum, Philippe, the CentOS package maintainer, president of the Firebird Foundation and member of the QA team of Firebird helped me to find) how to create a SSH tunnel through I can run a distant Firebird backup.
	This is the standard gbak command :
$ gbak -b [-v] [...]]]></description>
			<content:encoded><![CDATA[	<p>SSH is a wonderful piece of software. I found (hum, <a href="http://pmakowski.ibphoenix.fr/">Philippe, the CentOS package maintainer, president of the Firebird Foundation and member of the QA team of Firebird</a> helped me to find) how to create a SSH tunnel through I can run a distant Firebird backup.</p>
	<p>This is the standard gbak command :</p>
<code>$ gbak -b [-v] XXX.XXX.XXX.XXX:database backup.fbk -user SYSDBA -password masterkey</code>
	<p>With that command you can create a LOCAL backup of a REMOTE database.</p>
	<p>With this command :</p>
<code>$ gbak -b [-v] -service XXX.XXX.XXX.XXX:service_mgr database /path/to/backup.fbk -user SYSDBA -password masterkey </code>
	<p>You will create a REMOTE backup (in /path/to/backup.fbk) of a REMOTE database.</p>
	<p>Now, how can I create a LOCAL backup for a REMOTE database with stream compression and encryption ? By using SSH Tunnelling.</p>
<code>$ ssh -C -f user@XXX.XXX.XXX.XXX -L 3052:localhost:3050 -N</code>
	<p>This will run a background (-f) SSH Tunnel (-L) mapping local port 3052 to remote port 3050 (3052:localhost:3050) with compression (-C, or -o Compression=yes) and without running a remote command (-N)</p>
	<p>Now we can use this tunnel to start a secured/compressed remote backup :</p>
<code>$ gbak -b [-v] localhost/3052:database backup.fbk -user SYSDBA password masterkey</code>
	<p>Note : &#8220;database&#8221; can be an alias name, if defined in /etc/firebird/aliases.conf (location depends on your distribution package maintainer, at least this is where I can find this file on CentOS 5.3 using EPEL Testing repository) or the full path of the database on the host system. &#8220;backup.fbk&#8221; is the local path of the backup file.</p>
	<p>You will restore this backup locally by using this command :</p>
<code>$ gbak -c [-v] backup.fbk database -user SYSDBA -password masterkey</code>
	<p>Of course, you will have to adjust the user/password depending on your own configuration.</p>

 ]]></content:encoded>
			<wfw:commentRss>http://levosgien.net/2009/06/17/tunnelling-a-firebird-backup-with-ssh/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

