<?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>Twenty Square Meter &#187; confixx</title>
	<atom:link href="http://www.twentysqm.com/tag/confixx/feed" rel="self" type="application/rss+xml" />
	<link>http://www.twentysqm.com</link>
	<description>Ihr Ansprechpartner für innovative Ideen</description>
	<lastBuildDate>Tue, 04 Oct 2011 18:35:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Confixx 3 - Backup-Restore-Script</title>
		<link>http://www.twentysqm.com/2008-11-07/confixx-3-backup-script.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=confixx-3-backup-script</link>
		<comments>http://www.twentysqm.com/2008-11-07/confixx-3-backup-script.html#comments</comments>
		<pubDate>Thu, 06 Nov 2008 22:21:34 +0000</pubDate>
		<dc:creator>Frank Gottschlich</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[confixx]]></category>
		<category><![CDATA[lifecycle]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.twentysqm.com/?p=362</guid>
		<description><![CDATA[Durch eine Neuinstallation meines Servers bin ich nun auf die Problematik der Backups gekommen. Es dauert schon recht lange wenn man alles per Hand sichert, die Dateien kopiert und die Datenbank-Backups erstellt. Da ich nun das ganze gern automatisieren wollte habe ich mir die Confixx-Backup-Funktion zu nutze gemacht und eine Art Nightly-Build-Script für Confixx geschrieben. [...]]]></description>
			<content:encoded><![CDATA[<p>Durch eine Neuinstallation meines Servers bin ich nun auf die Problematik der Backups gekommen. Es dauert schon recht lange wenn man alles per Hand sichert, die Dateien kopiert und die Datenbank-Backups erstellt.</p>
<p>Da ich nun das ganze gern automatisieren wollte habe ich mir die Confixx-Backup-Funktion zu nutze gemacht und eine Art Nightly-Build-Script für Confixx geschrieben. Es ist allerdings sehr einfach gehalten.</p>
<pre class="brush: cpp; title: ; notranslate">#!/bin/sh
# Backupverzeichnis
CONFIXX=/backup/confixx/N
DATE=`date '+%Y%m%d'`
# Confixx-Backup durchführen
/root/confixx/backup.pl --dump ${CONFIXX}${DATE}
</pre>
<p>Download: <a href="http://www.twentysqm.com/wp-content/uploads/2008/11/backup_confixx.sh">backup_confixx.sh</a></p>
<p>Das Script erstellt bei Aufruf eine neue Datei<sup><a href="http://www.twentysqm.com/2008-11-07/confixx-3-backup-script.html#footnote_0_362" id="identifier_0_362" class="footnote-link footnote-identifier-link" title="Verzeichnis: /backup/confixx/, mit der BuildId: N">1</a></sup> mit dem aktuellen Datum als Name. Das ist der eigentliche Hintergrund. Somit hat man die Möglichkeit, in Verbindung mit einem Cronjob, tägliche Nightly-Builds erstellen zu lassen.</p>
<pre class="brush: cpp; title: ; notranslate">#!/bin/sh
CONFIXX=/backup/confixx/N
DATE=20081106
# Backup-einspielen
/root/confixx/restore.pl
--mapping
--dump ${CONFIXX}${DATE}
--map ${CONFIXX}${DATE}.map
--clean
/root/confixx/restore.pl
--restore
--dump ${CONFIXX}${DATE}
--map ${CONFIXX}${DATE}.map
--clean
--debug
</pre>
<p>Download: <a href="http://www.twentysqm.com/wp-content/uploads/2008/11/restore_confixx.sh">restore_confixx.sh</a></p>
<p>Bei dem wiederherstellen von Backups kann man das zweite Script nutzen. Hierzu sollte man vorher aber das etweilige Datum abändern, damit auch das richtige Backup eingespielt wird. Es ist nun nicht unbedingt das non-plus-ultra aber sicherlich eine solide Grundlage.</p>
<ol class="footnotes"><li id="footnote_0_362" class="footnote">Verzeichnis: /backup/confixx/, mit der BuildId: N</li></ol>]]></content:encoded>
			<wfw:commentRss>http://www.twentysqm.com/2008-11-07/confixx-3-backup-script.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

