<?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>zInformatik &#187; FTP</title>
	<atom:link href="http://zinformatik.de/tag/ftp/feed/" rel="self" type="application/rss+xml" />
	<link>http://zinformatik.de</link>
	<description>Computer, Informatik und Mikrocontroller Blog</description>
	<lastBuildDate>Sat, 22 Oct 2011 09:51:29 +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>vim als Dateibrowser und (S)FTP-Client</title>
		<link>http://zinformatik.de/tipps-tricks/vim-tipps/vim-als-dateibrowser-und-sftp-client/</link>
		<comments>http://zinformatik.de/tipps-tricks/vim-tipps/vim-als-dateibrowser-und-sftp-client/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 21:19:30 +0000</pubDate>
		<dc:creator>zimon</dc:creator>
				<category><![CDATA[vim Tipps]]></category>
		<category><![CDATA[Dateibrowser]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[SFTP]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://zinformatik.de/?p=879</guid>
		<description><![CDATA[<p>vim bietet Funktionen an, um sich die Dateien in einem Ordner anzusehen.<br />
Dafür braucht man nur statt einer Datei einen Ordner mit vim zu öffnen. Z.B. mit</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vim</span> meinordner</pre></div></div>

<p>wird das Verzeichnis &#8220;meinordner&#8221; geöffnet. Oder aus vim heraus z.B. mit</p>

<div class="wp_syntax"><div class="code"><pre class="vim" style="font-family:monospace;"><span style="color: #000000;">:</span>e <span style="color: #000000;">.</span></pre></div></div>

<p>um das aktuelle Verzeichnis in vim zu öffnen.</p>
<p>Nun wird der Ordnerinhalt angezeigt.&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>vim bietet Funktionen an, um sich die Dateien in einem Ordner anzusehen.<br />
Dafür braucht man nur statt einer Datei einen Ordner mit vim zu öffnen. Z.B. mit</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vim</span> meinordner</pre></div></div>

<p>wird das Verzeichnis &#8220;meinordner&#8221; geöffnet. Oder aus vim heraus z.B. mit</p>

<div class="wp_syntax"><div class="code"><pre class="vim" style="font-family:monospace;"><span style="color: #000000;">:</span>e <span style="color: #000000;">.</span></pre></div></div>

<p>um das aktuelle Verzeichnis in vim zu öffnen.</p>
<p>Nun wird der Ordnerinhalt angezeigt. Dort kann man wie gewohnt mit j und k den Cursor nach oben und unten Bewegen. Mit Enter öffnet man eine Datei oder einen Ordner. Die Ordner werden blau dargestellt und werden vor den Dateien einsortiert (wie auch in vielen graphischen Dateibrowsern).<br />
Interessant in diesem Zusammenhang ist das <a href="http://www.vim.org/scripts/script.php?script_id=1658" title="Vim Plugin - NERDTree" target="_blank" class="liexternal">Plugin NERDTree</a>, welches die Standardfunktion mit einem Dateibaum ersetzt und einige Tastenkombinationen bietet um z.B. einen Teilbaum zu öffnen oder zu schließen.</p>
<p>Genauso leicht kann man auch Dateien über FTP oder SFTP bearbeiten. Dafür startet man vim einfach mit der URL als Argument:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>servername.tld<span style="color: #000000; font-weight: bold;">/</span>pfad<span style="color: #000000; font-weight: bold;">/</span>zur<span style="color: #000000; font-weight: bold;">/</span>datei</pre></div></div>

<p>bzw für SFTP:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #c20cb9; font-weight: bold;">scp</span>:<span style="color: #000000; font-weight: bold;">//</span>servername.tld<span style="color: #000000; font-weight: bold;">/</span>pfad<span style="color: #000000; font-weight: bold;">/</span>zur<span style="color: #000000; font-weight: bold;">/</span>datei</pre></div></div>

<p>Man kann wie von ftp gewohnt auch den Usernamen direkt mit angeben:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>user<span style="color: #000000; font-weight: bold;">@</span>servername.tld<span style="color: #000000; font-weight: bold;">/</span>pfad<span style="color: #000000; font-weight: bold;">/</span>zur<span style="color: #000000; font-weight: bold;">/</span>datei</pre></div></div>

<p>So spart man sich das lästige Hoch- und Runterladen von Dateien über FTP.</p>
<p>Lesezeichen kann man in der Datei ~/.netrc speichern indem man für jeden Rechner eine Zeile mit folgendem Inhalt anlegt:</p>

<div class="wp_syntax"><div class="code"><pre class="vim" style="font-family:monospace;">machine HOSTNAME login USERID password <span style="color: #C5A22D;">&quot;PASSWORD&quot;</span></pre></div></div>

<p>(Die Groß geschriebenen Wörter müssen jeweils ersetzt werden)</p>
<p>Natürlich kann man auch auf dem FTP-Server den in vim integrierten Dateibrowser nutzen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>servername.tld<span style="color: #000000; font-weight: bold;">/</span>pfad<span style="color: #000000; font-weight: bold;">/</span>zum<span style="color: #000000; font-weight: bold;">/</span>verzeichnis<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>Wichtig ist hier der Slash am Ende.</p>
]]></content:encoded>
			<wfw:commentRss>http://zinformatik.de/tipps-tricks/vim-tipps/vim-als-dateibrowser-und-sftp-client/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Backup per FTP mit Tartarus</title>
		<link>http://zinformatik.de/tipps-tricks/interessante-programme/backup-per-ftp-mit-tartarus/</link>
		<comments>http://zinformatik.de/tipps-tricks/interessante-programme/backup-per-ftp-mit-tartarus/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 22:17:47 +0000</pubDate>
		<dc:creator>zimon</dc:creator>
				<category><![CDATA[Interessante Programme]]></category>
		<category><![CDATA[Sicherheit und Datenschutz]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[Konsole]]></category>
		<category><![CDATA[Scripte]]></category>

		<guid isPermaLink="false">http://zinformatik.de/?p=554</guid>
		<description><![CDATA[<p>Bisher war der <a href="http://zinformatik.de/allgemeines/server-down-wegen-stromausfall-bei-hetzner/" title="Stromausfall bei Hetzner" target="_self" class="liinternal">Stromausfall am Donnerstag</a> das einzige mal seit ich dort Kunde bin, dass etwas bei Hetzner nicht in Ordnung war. Jedoch habe ich es mir zum Anlass genommen, meine Backupstrategie zu überdenken.</p>
<p>Bisher nutzte ich selbstgeschriebene Bash Scripte und wollte diese erweitern, doch dann stieß ich auf Tartarus.</p>
<p>Tartarus ist ein opensource&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>Bisher war der <a href="http://zinformatik.de/allgemeines/server-down-wegen-stromausfall-bei-hetzner/" title="Stromausfall bei Hetzner" target="_self" class="liinternal">Stromausfall am Donnerstag</a> das einzige mal seit ich dort Kunde bin, dass etwas bei Hetzner nicht in Ordnung war. Jedoch habe ich es mir zum Anlass genommen, meine Backupstrategie zu überdenken.</p>
<p>Bisher nutzte ich selbstgeschriebene Bash Scripte und wollte diese erweitern, doch dann stieß ich auf Tartarus.</p>
<p>Tartarus ist ein opensource Bash Script, welches komplette sowie inkrementelle Backups von beliebigen Ordnern machen kann. Auch LVM Snapshots sind möglich. Warum also Zeit in Scripten, Testen und Debuggen investieren (es soll ja auch zuverlässig sein), wenn es schon eine fertige und erprobte Lösung gibt&#8230;</p>
<p>Die Konfiguration lässt sich einfach über verschiedene Konfigurationsdateien steuern wodurch Änderungen schnell umgesetzt werden können.</p>
<p>Die Sicherung erfolgt wahlweise zu einem FTP-Server oder in ein Verzeichnis. Man kann jedoch noch andere Möglichkeiten nutzen indem man entsprechende Funktionen in den Konfigurationsdateien erstellt. In der Dokumentation ist ein Beispiel für ssh.</p>
<p>Die Verzeichnisse werden mit tar gepackt und wahlweise mit bzip2 oder gzip komprimiert. Zusätzlich kann noch mit GnuPG synchron oder asynchron verschlüsselt werden.Verzeichnisse, die nicht mit ins Backup sollen kann man über eine Liste ausschließen.</p>
<p>Die Verwendung von Standardbefehlen wie tar oder bzip finde ich sehr Vorteilhaft, da sie auf fast jedem (Linux) System verfügbar sind. Zur Übertragung per FTP wird curl genutzt.</p>
<p>Mit dem Zusatzscript charon kann man ältere Backups auch leicht wieder vom Backup-Server löschen. Dies kann man sogar als sogenannten &#8220;Hook&#8221; nach der Erstellung des neuen Backups automatisch ausführen lassen. Dabei löscht charon nur  Backups, die älter als eine vorgegebene Anzahl von Tagen sind.</p>
<p><strong>Links:</strong></p>
<ul>
<li>Tartarus Homepage: <a href="http://wertarbyte.de/tartarus.shtml" title="Tartarus Webpage" target="_blank" class="liexternal">http://wertarbyte.de/tartarus.shtml</a></li>
<li>Installations- und Konfigurationsanleitung im Hetzner Wiki: <a href="http://wiki.hetzner.de/index.php/Tartarus_Backup-Konfiguration" title="Hetzner Wiki - Tartarus" target="_blank" class="liexternal">http://wiki.hetzner.de/index.php/Tartarus_Backup-Konfiguration</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://zinformatik.de/tipps-tricks/interessante-programme/backup-per-ftp-mit-tartarus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

