<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.hb9fdz.ch//index.php?action=history&amp;feed=atom&amp;title=Microsoft_SQL_Server_Backup</id>
	<title>Microsoft SQL Server Backup - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.hb9fdz.ch//index.php?action=history&amp;feed=atom&amp;title=Microsoft_SQL_Server_Backup"/>
	<link rel="alternate" type="text/html" href="https://wiki.hb9fdz.ch//index.php?title=Microsoft_SQL_Server_Backup&amp;action=history"/>
	<updated>2026-06-13T08:32:16Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in HB9FDZ</subtitle>
	<generator>MediaWiki 1.45.0</generator>
	<entry>
		<id>https://wiki.hb9fdz.ch//index.php?title=Microsoft_SQL_Server_Backup&amp;diff=842&amp;oldid=prev</id>
		<title>Thomas am 19. August 2025 um 09:59 Uhr</title>
		<link rel="alternate" type="text/html" href="https://wiki.hb9fdz.ch//index.php?title=Microsoft_SQL_Server_Backup&amp;diff=842&amp;oldid=prev"/>
		<updated>2025-08-19T09:59:15Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 19. August 2025, 09:59 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l27&quot;&gt;Zeile 27:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 27:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Für E-Mail-Benachrichtigungen bei Erfolg/Fehler kannst du PowerShell mit SMTP ergänzen&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Für E-Mail-Benachrichtigungen bei Erfolg/Fehler kannst du PowerShell mit SMTP ergänzen&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Kategorie:MS SQL]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Thomas</name></author>
	</entry>
	<entry>
		<id>https://wiki.hb9fdz.ch//index.php?title=Microsoft_SQL_Server_Backup&amp;diff=841&amp;oldid=prev</id>
		<title>Thomas: /* Hinweis */</title>
		<link rel="alternate" type="text/html" href="https://wiki.hb9fdz.ch//index.php?title=Microsoft_SQL_Server_Backup&amp;diff=841&amp;oldid=prev"/>
		<updated>2025-08-19T09:56:12Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Hinweis&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 19. August 2025, 09:56 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l24&quot;&gt;Zeile 24:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 24:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Hinweis ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Hinweis ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Du kannst auch mehrere Datenbanken sichern, indem du das Skript entsprechend erweiterst&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Für E-Mail-Benachrichtigungen bei Erfolg/Fehler kannst du PowerShell mit SMTP ergänzen&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Thomas</name></author>
	</entry>
	<entry>
		<id>https://wiki.hb9fdz.ch//index.php?title=Microsoft_SQL_Server_Backup&amp;diff=840&amp;oldid=prev</id>
		<title>Thomas: Die Seite wurde neu angelegt: „=== 1. Backup-Skript erstellen === Erstelle z. B. eine Datei namens &lt;code&gt;sqlbackup.ps1&lt;/code&gt; mit folgendem Inhalt:  &lt;syntaxhighlight lang=&quot;powershell&quot;&gt; $timestamp = Get-Date -Format &quot;yyyyMMdd_HHmmss&quot; $backupPath = &quot;C:\SQLBackups\MyDatabase_$timestamp.bak&quot; $sql = &quot;BACKUP DATABASE [MyDatabase] TO DISK = N&#039;$backupPath&#039; WITH INIT&quot;  Invoke-Sqlcmd -Query $sql -ServerInstance &quot;localhost\SQLEXPRESS&quot; &lt;/syntaxhighlight&gt;  Ersetze &lt;code&gt;MyDatabase&lt;/code&gt; mit dem…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.hb9fdz.ch//index.php?title=Microsoft_SQL_Server_Backup&amp;diff=840&amp;oldid=prev"/>
		<updated>2025-08-19T09:55:50Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „=== 1. Backup-Skript erstellen === Erstelle z. B. eine Datei namens &amp;lt;code&amp;gt;sqlbackup.ps1&amp;lt;/code&amp;gt; mit folgendem Inhalt:  &amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt; $timestamp = Get-Date -Format &amp;quot;yyyyMMdd_HHmmss&amp;quot; $backupPath = &amp;quot;C:\SQLBackups\MyDatabase_$timestamp.bak&amp;quot; $sql = &amp;quot;BACKUP DATABASE [MyDatabase] TO DISK = N&amp;#039;$backupPath&amp;#039; WITH INIT&amp;quot;  Invoke-Sqlcmd -Query $sql -ServerInstance &amp;quot;localhost\SQLEXPRESS&amp;quot; &amp;lt;/syntaxhighlight&amp;gt;  Ersetze &amp;lt;code&amp;gt;MyDatabase&amp;lt;/code&amp;gt; mit dem…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== 1. Backup-Skript erstellen === Erstelle z. B. eine Datei namens &amp;lt;code&amp;gt;sqlbackup.ps1&amp;lt;/code&amp;gt; mit folgendem Inhalt:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt; $timestamp = Get-Date -Format &amp;quot;yyyyMMdd_HHmmss&amp;quot; $backupPath = &amp;quot;C:\SQLBackups\MyDatabase_$timestamp.bak&amp;quot; $sql = &amp;quot;BACKUP DATABASE [MyDatabase] TO DISK = N&amp;#039;$backupPath&amp;#039; WITH INIT&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Invoke-Sqlcmd -Query $sql -ServerInstance &amp;quot;localhost\SQLEXPRESS&amp;quot; &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ersetze &amp;lt;code&amp;gt;MyDatabase&amp;lt;/code&amp;gt; mit dem Namen deiner Datenbank&lt;br /&gt;
&lt;br /&gt;
Stelle sicher, dass der Ordner &amp;lt;code&amp;gt;C:\SQLBackups&amp;lt;/code&amp;gt; existiert&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Invoke-Sqlcmd&amp;lt;/code&amp;gt; ist Teil der &amp;#039;&amp;#039;SQL Server PowerShell Tools&amp;#039;&amp;#039; (ggf. über &amp;lt;code&amp;gt;SqlServer&amp;lt;/code&amp;gt;-Modul installieren)&lt;br /&gt;
&lt;br /&gt;
=== 2. Aufgabenplanung einrichten ===&lt;br /&gt;
&lt;br /&gt;
Öffne die &amp;#039;&amp;#039;Windows Aufgabenplanung&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Neue Aufgabe erstellen: ** Trigger: Täglich oder nach Wunsch ** Aktion: &amp;lt;code&amp;gt;powershell.exe&amp;lt;/code&amp;gt; mit Argument: &amp;lt;syntaxhighlight lang=&amp;quot;dos&amp;quot;&amp;gt; -File &amp;quot;C:\Pfad\zu\sqlbackup.ps1&amp;quot; &amp;lt;/syntaxhighlight&amp;gt; ** Option: Mit höchsten Privilegien ausführen&lt;br /&gt;
&lt;br /&gt;
=== 3. Backup prüfen ===&lt;br /&gt;
&lt;br /&gt;
Nach Ausführung sollte im Ordner &amp;lt;code&amp;gt;C:\SQLBackups&amp;lt;/code&amp;gt; eine &amp;lt;code&amp;gt;.bak&amp;lt;/code&amp;gt;-Datei mit Zeitstempel liegen&lt;br /&gt;
&lt;br /&gt;
Diese kann später für Wiederherstellung verwendet werden: &amp;lt;syntaxhighlight lang=&amp;quot;sql&amp;quot;&amp;gt; RESTORE DATABASE [MyDatabase] FROM DISK = N&amp;#039;C:\SQLBackups\MyDatabase_20250819_1154.bak&amp;#039; &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Hinweis ===&lt;/div&gt;</summary>
		<author><name>Thomas</name></author>
	</entry>
</feed>