<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">

<channel>
	<title>Fabian Moser &#187; 7-zip</title>
	<atom:link href="http://fabianmoser.at/schlagwort/7-zip/feed/" rel="self" type="application/rss+xml" />
	<link>http://fabianmoser.at</link>
	<description>&#34;as simple as possible, but not simpler&#34;</description>
	<lastBuildDate>Thu, 26 Jan 2012 13:19:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/at/</creativeCommons:license>		<item>
		<title>Sicherung eines Netzwerkpfades unter Windows Vista</title>
		<link>http://fabianmoser.at/blog/2009/09/14/sicherung-eines-netzwerkpfades-unter-windows-vista/</link>
		<comments>http://fabianmoser.at/blog/2009/09/14/sicherung-eines-netzwerkpfades-unter-windows-vista/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 08:46:24 +0000</pubDate>
		<dc:creator>Fabian Moser</dc:creator>
				<category><![CDATA[Arbeit]]></category>
		<category><![CDATA[7-zip]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Batch]]></category>
		<category><![CDATA[DFS]]></category>
		<category><![CDATA[robocopy]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://fabianmoser.at/?p=441</guid>
		<description><![CDATA[Ich weiß, dass es für gewöhnlich umgekehrt ist, aber ich stand vor dem Problem, dass ich auf einer zentral verwalteten Maschine mit einem Benutzerkonto auf einem DFS-Server die dort abgelegten Daten gerne lokal gesichert hätte. Der Grund dafür war in &#8230; <a href="http://fabianmoser.at/blog/2009/09/14/sicherung-eines-netzwerkpfades-unter-windows-vista/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ich weiß, dass es für gewöhnlich umgekehrt ist, aber ich stand vor dem Problem, dass ich auf einer zentral verwalteten Maschine mit einem Benutzerkonto auf einem DFS-Server die dort abgelegten Daten gerne lokal gesichert hätte. Der Grund dafür war in erster Linie mein Misstrauen gegenüber der Verfügbarkeit der Netzwerkverbindung. Ich wollte auch an Tagen, an denen es Netzwerkprobleme gab, mit meinen Daten ungestört weiterarbeiten können (ohne mich auf die Vista-eigenen Offline Mechanismen verlassen zu müssen).</p>
<p>Das <a href="http://www.fabianmoser.at/files/2009/09/backup_dfs.cmd">folgende Skript</a> erfüllt genau diese Aufgabe und ist auch leicht per Taskplaner zu automatisieren. Um es einzusetzen, müssen nur die Einstellungen in Zeile 3 bis 6 angepasst werden und dafür gesorgt sein, dass <a href="http://www.7-zip.org/">7-zip</a> installiert ist.</p>

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;"><span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">echo</span> off
&nbsp;
<span style="color: #b1b100; font-weight: bold;">set</span> source=\\cern.ch\dfs\Users\f\fmoser
<span style="color: #b1b100; font-weight: bold;">set</span> destination=D:\fmoser\Backup
<span style="color: #b1b100; font-weight: bold;">set</span> prefix=fmoser_
<span style="color: #b1b100; font-weight: bold;">set</span> szip=&quot;C:\Program Files <span style="color: #33cc33;">(</span>x86<span style="color: #33cc33;">)</span>\7-Zip\7z.exe&quot;
&nbsp;
<span style="color: #00b100; font-weight: bold;">For</span> /f &quot;tokens=1-3 delims=/ &quot; <span style="color: #33cc33;">%%</span><span style="color: #448888;">a</span> <span style="color: #00b100; font-weight: bold;">in</span> <span style="color: #33cc33;">(</span>'date /t'<span style="color: #33cc33;">)</span> <span style="color: #00b100; font-weight: bold;">do</span> <span style="color: #33cc33;">(</span><span style="color: #b1b100; font-weight: bold;">set</span> mydate=<span style="color: #33cc33;">%%</span><span style="color: #448888;">c</span>-<span style="color: #33cc33;">%%</span><span style="color: #448888;">a</span>-<span style="color: #33cc33;">%%</span><span style="color: #448888;">b</span><span style="color: #33cc33;">)</span>
<span style="color: #00b100; font-weight: bold;">For</span> /f &quot;tokens=1-2 delims=/:&quot; <span style="color: #33cc33;">%%</span><span style="color: #448888;">a</span> <span style="color: #00b100; font-weight: bold;">in</span> <span style="color: #33cc33;">(</span>'time /t'<span style="color: #33cc33;">)</span> <span style="color: #00b100; font-weight: bold;">do</span> <span style="color: #33cc33;">(</span><span style="color: #b1b100; font-weight: bold;">set</span> mytime=<span style="color: #33cc33;">%%</span><span style="color: #448888;">a</span><span style="color: #33cc33;">%%</span><span style="color: #448888;">b</span><span style="color: #33cc33;">)</span>
<span style="color: #b1b100; font-weight: bold;">set</span> backupname=<span style="color: #33cc33;">%</span><span style="color: #448888;">destination</span><span style="color: #33cc33;">%</span>\<span style="color: #33cc33;">%</span><span style="color: #448888;">prefix</span><span style="color: #33cc33;">%%</span><span style="color: #448888;">mydate</span><span style="color: #33cc33;">%</span>_<span style="color: #33cc33;">%</span><span style="color: #448888;">mytime</span><span style="color: #33cc33;">%</span>
<span style="color: #b1b100; font-weight: bold;">mkdir</span> <span style="color: #33cc33;">%</span><span style="color: #448888;">backupname</span><span style="color: #33cc33;">%</span>
robocopy <span style="color: #33cc33;">%</span><span style="color: #448888;">source</span><span style="color: #33cc33;">%</span> <span style="color: #33cc33;">%</span><span style="color: #448888;">backupname</span><span style="color: #33cc33;">%</span> /MIR /Z /R:10 /W:30 /<span style="color: #b1b100; font-weight: bold;">COPY</span>:DATSO /XJ /LOG:<span style="color: #33cc33;">%</span><span style="color: #448888;">backupname</span><span style="color: #33cc33;">%</span>.log /NP
<span style="color: #33cc33;">%</span><span style="color: #448888;">szip</span><span style="color: #33cc33;">%</span> a -t7z -mx9 <span style="color: #33cc33;">%</span><span style="color: #448888;">backupname</span><span style="color: #33cc33;">%</span>.7z <span style="color: #33cc33;">%</span><span style="color: #448888;">backupname</span><span style="color: #33cc33;">%</span> <span style="color: #33cc33;">%</span><span style="color: #448888;">backupname</span><span style="color: #33cc33;">%</span>.log <span style="color: #33cc33;">&amp;&amp;</span> <span style="color: #b1b100; font-weight: bold;">rd</span> /S /Q <span style="color: #33cc33;">%</span><span style="color: #448888;">backupname</span><span style="color: #33cc33;">%</span> <span style="color: #33cc33;">&amp;&amp;</span> <span style="color: #b1b100; font-weight: bold;">del</span> <span style="color: #33cc33;">%</span><span style="color: #448888;">backupname</span><span style="color: #33cc33;">%</span>.log</pre></div></div>

<p><a href="http://www.fabianmoser.at/uploads/2009/09/backup_dfs.cmd">backup_dfs.cmd</a></p>
]]></content:encoded>
			<wfw:commentRss>http://fabianmoser.at/blog/2009/09/14/sicherung-eines-netzwerkpfades-unter-windows-vista/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

