{"id":5163,"date":"2015-08-22T14:36:21","date_gmt":"2015-08-22T06:36:21","guid":{"rendered":"http:\/\/rmohan.com\/?p=5163"},"modified":"2015-08-22T14:36:21","modified_gmt":"2015-08-22T06:36:21","slug":"creating-backups-of-windows-2008-server-core-machines","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=5163","title":{"rendered":"Creating Backups of Windows 2008 Server Core Machines"},"content":{"rendered":"<p>Windows 2008 Server Core is a minimalist installation of Windows Server 2008. It must be managed from the servers console command line or remotely via Terminal Services.<\/p>\n<p>In previous versions of Windows Server, NTbackup.exe was the program used for creating system backups. NTbackup.exe has been phased out and has been replaced in Windows 2008 by Windows Server Backup, wbadmin.exe. <a href=\"http:\/\/www.microsoft.com\/downloads\/details.aspx?FamilyID=7da725e2-8b69-4c65-afa3-2a53107d54a7&amp;DisplayLang=en\" target=\"_blank\">NTbackup is still available<\/a> as a separate download in Windows 2008, only for backwards compatibility for restores, so don\u2019t bother trying to use this legacy tool to create backups.<\/p>\n<p>Since the Server Core installation only installs files that are absolutely essential, we\u2019ll first have to install Windows Server Backup. The following command is case sensitive, so type it carefully from the server console:<\/p>\n<p><i>start \/w ocsetup WindowsServerBackup<\/i><\/p>\n<p>Now that the Windows Server Backup program is installed, we can <a href=\"http:\/\/technet2.microsoft.com\/windowsserver2008\/en\/library\/4b0b3f32-d21f-4861-84bb-b2eadbf1e7b81033.mspx?mfr=true\" target=\"_blank\">start making backups<\/a> to remote machines.<\/p>\n<p><i>wbadmin.exe start backup -backuptarget:\\\\SERVER\\SHARE -allCritical -VSSfull -quiet<\/i><\/p>\n<p>will create a backup of the entire system and save it to \\\\SERVER\\SHARE, which is a share on a remote machine. Notice that a UNC path is required rather than a mapped drive.<\/p>\n<p>Normally you will be prompted to answer <i>Y\/N <\/i>to \u201c<i>Do you want to start the backup operation?<\/i>\u201d before the backup begins, but the <i>-quiet<\/i>command hides this prompt.<\/p>\n<p>To create a System State Backup and save it on the D Drive, use the following syntax:<\/p>\n<p><i>wbadmin.exe start systemstatebackup -backuptarget:d:<\/i><\/p>\n<p>There are a few rules you need to remember about backups in Windows 2008. First, you can\u2019t create a System State Backup on the server\u2019s C Drive. You\u2019ll receive the following message:<\/p>\n<p><i>ERROR \u2013 The location for backup is a critical volume.<\/i><\/p>\n<p>I used to be able to create System State backups in Windows 2003 and save them to the C Drive. This was useful for servers that had only one partition, since I\u2019d move the System State backup to a flash drive after it was created. Luckily, <a href=\"http:\/\/support.microsoft.com\/kb\/944530\" target=\"_blank\">KB 944530<\/a> describes a registry entry you can create to enable system state backups to critical volumes.<\/p>\n<p>To enable the system state backup files to be targeted to critical volumes, you must set the value of the AllowSSBToAnyVolume registry entry under the following registry subkey:<br \/>\n<i>HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\wbengine\\SystemStateBackup\\<\/i><\/p>\n<p>Set the value of this entry as follows:<br \/>\nName: <i>AllowSSBToAnyVolume<\/i><br \/>\nData type: DWORD<br \/>\nValue data: <i>1<\/i><br \/>\nNote When this value is set to 1, system state backups to any volume are enabled. To revert to the default behavior, set the value to 0.<\/p>\n<p>The next rule, which I find to be particularly ridiculous, is that you cannot save System State backups to a remote share on another server. When I attempted to do this I encountered the following message:<\/p>\n<p><i>\u201cCreating a system state backup to a shared network folder is not allowed. To store a system state backup on a shared network folder, first run the backup to a local volume and then copy the backup to the shared network folder.\u201d<\/i><\/p>\n<p>Sounds great in theory, but like I said before, if you only have a C Drive and no other local volumes, unless you hack the registry the only way you can backup the System State is to do a complete system backup.<\/p>\n<p>The third rule is you can only backup entire volumes, which means no choosing which folders and files are backed up. I find this odd, since I often have folders that I don\u2019t want to ever backup, like temp and cache directories.<\/p>\n<p>Finally, you cannot backup to tape using Windows Server Backup. I\u2019m not really affected by this since I\u2019ve been using disk-to-disk solutions for quite a while now. I can see how this caveat may mess with some admin\u2019s backup strategy, especially those used to keeping long term tape archives.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows 2008 Server Core is a minimalist installation of Windows Server 2008. It must be managed from the servers console command line or remotely via Terminal Services.<\/p>\n<p>In previous versions of Windows Server, NTbackup.exe was the program used for creating system backups. NTbackup.exe has been phased out and has been replaced in Windows 2008 by [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5163"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5163"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5163\/revisions"}],"predecessor-version":[{"id":5164,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5163\/revisions\/5164"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}