Presentation is loading. Please wait.

Presentation is loading. Please wait.

Enhancing Windows Server 2003 Backups Using tools built-in to Server 2003, and those available free, to enhance & supplement your Data Backup strategy.

Similar presentations


Presentation on theme: "Enhancing Windows Server 2003 Backups Using tools built-in to Server 2003, and those available free, to enhance & supplement your Data Backup strategy."— Presentation transcript:

1 Enhancing Windows Server 2003 Backups Using tools built-in to Server 2003, and those available free, to enhance & supplement your Data Backup strategy. Presented by: Walter J. Alexander, IV Technical Services Supervisor Shelby County Schools

2 2AETA October 2007Shelby County Schools How Are You Backing Up Now? Traditional Backup Software? Backup Exec, NOVAstor, ARCserve, etc. Backup Exec, NOVAstor, ARCserve, etc. Windows Built-In NTBACKUP.EXE utility? Copying data to removable media? Batch Files Batch Files Scheduled Tasks Scheduled Tasks Copying data to another server? ANY OF THESE ARE FINE!

3 3AETA October 2007Shelby County Schools What Can I Improve? Faster restoration of data by keeping critical data at your fingertips. Multiple levels of protection for critical data. Ability for end-users to restore data themselves. More efficient use of limited backup storage space.

4 4AETA October 2007Shelby County Schools How to Improve My Strategy Use NTBACKUP.EXE to create consolidated collections of important data. Use NTBACKUP.EXE to create System State backups for more AD recovery options. Use GZIP to compress data before it is written to backup media. Use Volume Shadow Copies to preserve multiple versions of files. Use Scheduled Tasks to automate much of this. Use Shadow Copy Client to allow end-users to restore their own data.

5 5AETA October 2007Shelby County Schools NTBACKUP.EXE Basics Included in Windows Server for many versions. Included in Windows XP. Programs… Accessories… System Tools… Backup Wizard is helpful for learning the utility. Use to backup specific directories to a single file. Create Scheduled Tasks for each day of the week to create multiple versions of the backed up data. Use Wizard or use the SchTasks.EXE command. Use GZIP or other compression tool to further compact this data.

6 6AETA October 2007Shelby County Schools Setting up NTBACKUP.EXE Jobs Use the Wizard at first Select what you want to backup. Select what you want to backup. Setup a schedule to repeat the job. Setup a schedule to repeat the job. Use this Scheduled Task to examine command line use of NTBACKUP.EXE Use this Scheduled Task to examine command line use of NTBACKUP.EXE Use the Advanced Mode Make your selections of what to backup. Make your selections of what to backup. Save selections as… (.BKS file). Save selections as… (.BKS file).

7 7AETA October 2007Shelby County Schools NTBACKUP.EXE Demo Let’s look at NTBACKUP.EXE…

8 8AETA October 2007Shelby County Schools NTBACKUP.EXE Review.BKS files tell NTBACKUP.EXE what directories you wish to backup..BKF files are the output of NTBACKUP.EXE. These contain the actual data that has been backed up.

9 9AETA October 2007Shelby County Schools NTBACKUP.EXE Gotchas.BKS Selection files must be saved with Unicode encoding. From Notepad… choose Save As then pick Encoding: UNICODE From Notepad… choose Save As then pick Encoding: UNICODE If the file used ANSI encoding, NTBACKUP.EXE will ignore it’s contents. If the file used ANSI encoding, NTBACKUP.EXE will ignore it’s contents.

10 10AETA October 2007Shelby County Schools GZIP Compression Utility GZIP is a free utility available from GZIP is available for practically every computer platform. GZIP can compress most files to a fraction of their original size. GZIP.EXE for Windows is a very simple to use command-line utility. GZIP.EXE can easily be included in batch files and Scheduled Tasks. GZIP.EXE can be used to both compress and decompress files. GZIP files have a.GZ extension.

11 11AETA October 2007Shelby County Schools GZIP.EXE Switches GZIP.EXE has several switches, the most useful I have found are: -? (this will give you list of switches and short description of what it does) -? (this will give you list of switches and short description of what it does) -9 (this is the level of compression to attempt… 9 takes the longest amount of time but also compresses the most). -9 (this is the level of compression to attempt… 9 takes the longest amount of time but also compresses the most). -r (this is Recursive… this means that GZIP will compress every file you specify in subdirectories as well). -r (this is Recursive… this means that GZIP will compress every file you specify in subdirectories as well). -f (this is Force… this will cause GZIP to overwrite and older zipped file without asking you). -f (this is Force… this will cause GZIP to overwrite and older zipped file without asking you).

12 12AETA October 2007Shelby County Schools GZIP Example Example of a GZIP command line. gzip -9 -r -f D:\Backups\*.* gzip -9 -r -f D:\Backups\*.* (This will compress everything not already compressed in the D:\Backups directory using maximum compression (-9) (This will compress everything not already compressed in the D:\Backups directory using maximum compression (-9) Will compress files in subdirectories (-r) Will compress files in subdirectories (-r) Will overwrite any older.GZ files (-f) Will overwrite any older.GZ files (-f) MYFILE.TXT will become MYFILE.GZ

13 13AETA October 2007Shelby County Schools GZIP.EXE Demo Let’s look at GZIP.EXE…

14 14AETA October 2007Shelby County Schools GZIP.EXE Gotchas Make sure that the user that is running the GZIP job has sufficient file system rights to delete files. Otherwise, you will wind up with both the original version AND the GZIPped version. Make sure you have enough disk space for the GZIPped version to “build”. Original file is not deleted until the.GZ version is completely finished! Original file is not deleted until the.GZ version is completely finished! GZIP must be copied to your servers or workstations… it is not part of Windows. GZIP must be in the path for maximum ease of use. I put it under C:\WINDOWS.

15 15AETA October 2007Shelby County Schools Volume Shadow Copies Volume Shadow Copies rely on the Windows Volume Shadow Service (VSS). VSS is a set of components that allow backups to be performed while data continues to be written to volumes. VSS is a set of components that allow backups to be performed while data continues to be written to volumes. VSS provides the behind-the-scenes workings that allow NTBACKUP.EXE to function. VSS provides the behind-the-scenes workings that allow NTBACKUP.EXE to function. VSS is included in Server VSS is included in Server Volume Shadow Copies are previous versions of files or directories that have changed on your server. Volume Shadow Copies allow you to restore those previous versions very quickly. Volume Shadow Copies are enabled on a per-volume basis.

16 16AETA October 2007Shelby County Schools Volume Shadow Copy Strategy Decide on which volumes you wish to have Shadow Copies enabled. Where is my critical data? Where is my critical data? What data is likely to need a fast or frequent restore? What data is likely to need a fast or frequent restore? Decide how much disk space to allocate for Shadow Copies. Need at least 300MB of free space. Need at least 300MB of free space. You can limit the space or allow it to fill the volume. You can limit the space or allow it to fill the volume. There is a Maximum of 64 Shadow Copies per volume. There is a Maximum of 64 Shadow Copies per volume. Oldest Shadow Copies will be deleted as needed. Oldest Shadow Copies will be deleted as needed.

17 17AETA October 2007Shelby County Schools More Shadow Copy Strategy Decide where the shadow copies will be stored. On the source volume. On the source volume. On another regular volume. On another regular volume. On a dedicated volume (USB, FireWire, other?) On a dedicated volume (USB, FireWire, other?) Decide how often you need to make shadow copies. Many times per day? Many times per day? Once per day? Once per day? Once per week? Once per week?

18 18AETA October 2007Shelby County Schools Volume Properties Tab You can use the Shadow Copies tab of the volume Properties to configure everything. Let’s take a look…

19 19AETA October 2007Shelby County Schools Volume Properties Tab Review Configuring Volume Shadow Copies using the Volume Properties Tab… My Computer My Computer Select the volume (i.e. D: or F:) Select the volume (i.e. D: or F:) Right-click… choose Properties Right-click… choose Properties Click the Shadow Copies tab. Click the Shadow Copies tab. Choose the volume on which you wish to enable Shadow Copies, then click Settings. Choose the volume on which you wish to enable Shadow Copies, then click Settings. Storage Area can be set to any NTFS formatted drive letter. Storage Area can be set to any NTFS formatted drive letter. Maximum Size can be No Limit, or you can set a limit (minimum size 300MB) Maximum Size can be No Limit, or you can set a limit (minimum size 300MB) Schedule can be configured for how often you want to create Shadow Copies. Note: The Schedule will create “ShadowCopyVolume” Scheduled Tasks to carry out it’s deeds. Schedule can be configured for how often you want to create Shadow Copies. Note: The Schedule will create “ShadowCopyVolume” Scheduled Tasks to carry out it’s deeds.

20 20AETA October 2007Shelby County Schools VSSADMIN.EXE Demo You can perform all setup of VSS and creation of Shadow Copies using the VSSADMIN.EXE command. Let’s take a look…

21 21AETA October 2007Shelby County Schools VSSADMIN.EXE Review Configuring Volume Shadow Copies using the VSSADMIN.EXE command line utility… Open a Command Prompt Open a Command Prompt VSSADMIN /? for a list of options. VSSADMIN /? for a list of options. VSSADMIN add shadowstorage /for=D: /on=D: /MaxSize=2gb to create storage area. VSSADMIN add shadowstorage /for=D: /on=D: /MaxSize=2gb to create storage area. VSSADMIN create shadow /for=D: to create a shadow copy VSSADMIN create shadow /for=D: to create a shadow copy You can see how you could consistently configure your Shadow Copy settings.

22 22AETA October 2007Shelby County Schools Accessing Shadow Copies Accessing Shadow Copies allows you to restore older versions of files and folders. Let’s take a look…

23 23AETA October 2007Shelby County Schools Accessing Shadow Copies Review Open the Share. Right-click the file or folder you wish to restore, then choose Properties. Click the Previous Versions tab. If you don’t see the tab, maybe you don’t have Shadow Copies setup on this volume. If you don’t see the tab, maybe you don’t have Shadow Copies setup on this volume. Select from the list of Previous Versions, then choose View, Copy or Restore. View will let you see the contents of the file. If it’s a folder, you will see files and subfolders, and you can even copy and paste from there! View will let you see the contents of the file. If it’s a folder, you will see files and subfolders, and you can even copy and paste from there! Copy will restore the file or folder to a new location. Copy will restore the file or folder to a new location. I suggest you create a “Restored Data” folder first and target the copied data into that. Restore will restore the file or folder to it’s original location, overwriting anything newer that is in that location. Restore will restore the file or folder to it’s original location, overwriting anything newer that is in that location.

24 24AETA October 2007Shelby County Schools Accessing Shadow Copies from Server If you go My Computer… drive letter, then Properties, you will not see the Previous Versions tab. You must access the data using the Share in order to see the Previous Versions tab. Easiest way to do this is Start… Run \\ Easiest way to do this is Start… Run \\ \\ then select the Share name. You can also access files or folders on remote shares, choose Properties and then choose their Previous Versions tab.

25 25AETA October 2007Shelby County Schools Volume Shadow Copy Gotchas Don’t rely too heavily on Volume Shadow Copies. They could get disabled and you may not know it until it’s too late! They could get disabled and you may not know it until it’s too late! They could disappear unexpectedly. They could disappear unexpectedly. Overworked processor. Overworked processor. Intensive disk I/O. Intensive disk I/O. Memory shortage. Memory shortage. Windows bug. Windows bug. When restoring a file, you may need to restore a lot more data than you really need. Decide to what volume you want to restore the data. Decide to what volume you want to restore the data. Target to a volume with plenty of disk space. Create a “RESTORED-DATA” folder on that volume. Use the COPY option. There are special considerations for Clusters. Check Microsoft’s Support Web Site Check Microsoft’s Support Web Site

26 26AETA October 2007Shelby County Schools Volume Shadow Client for XP Windows XP users will see the Previous Versions tab for files or folders on network shares. The Time Warp Client is no longer needed… it’s functionality (the Previous Versions tab) built into newer XP service packs. The Time Warp Client is no longer needed… it’s functionality (the Previous Versions tab) built into newer XP service packs. If they do not have this tab, either Shadow Copies are not setup on this volume, or the XP machine may not be up to date on MS patches. If they do not have this tab, either Shadow Copies are not setup on this volume, or the XP machine may not be up to date on MS patches. The user can choose to either Restore (overwrite), or Copy (re-target) the previous version. The user can choose to either Restore (overwrite), or Copy (re-target) the previous version.

27 27AETA October 2007Shelby County Schools Scheduled Tasks Overview Scheduled Tasks run automatically on Server 2003 and XP. Scheduled Tasks are created by many software programs and the operating system itself, especially on Windows Server Scheduled Tasks can be created, deleted or modified using the Control Panel GUI. Scheduled Tasks can be created or deleted (not modified) using the SCHTASKS.EXE command line utility. Efficient management of Scheduled Tasks is best achieved by creating and following strict naming conventions and methods.

28 28AETA October 2007Shelby County Schools Using Scheduled Tasks Scheduled Tasks can be used to automated many processes, including: NTBACKUP Jobs. NTBACKUP Jobs. Volume Shadow Copies. Volume Shadow Copies. GZIP functions. GZIP functions. Many other GUI Utilities. Many other GUI Utilities. Most command line utilities. Most command line utilities. Scheduled Tasks are configured to run as a specific user. This user must have the right necessary to perform all the functions of the task (running a program, writing files, deleting files, etc). This user must have the right necessary to perform all the functions of the task (running a program, writing files, deleting files, etc). Password is hard-coded into the task… so…. Password is hard-coded into the task… so…. Choose a strong password wisely and don’t use it for any other functions. If you ever need to change this password, these tasks will need to be either modified (using GUI), or deleted and re-created (using GUI or Command Line).

29 29AETA October 2007Shelby County Schools SCHTASKS.EXE Demo You can setup (and delete) Scheduled Tasks using the SCHTASKS.EXE command. Let’s take a look…

30 30AETA October 2007Shelby County Schools SCHTASKS.EXE Review Creating Scheduled Tasks using the SCHTASKS.EXE command line utility… Open a Command Prompt Open a Command Prompt SCHTASKS to see a list of current Scheduled Tasks. SCHTASKS to see a list of current Scheduled Tasks. SCHTASKS /? to see basic switches. SCHTASKS /? to see basic switches. SCHTASKS /Create /? to see options that go along with the /Create switch. SCHTASKS /Create /? to see options that go along with the /Create switch. You can see how you could create (and delete) tasks on remote servers quickly and consistently using the SCHTASKS.EXE command.

31 31AETA October 2007Shelby County Schools SCHTASKS.EXE Example #1 Here’s a sample command line to create a Scheduled Task that runs an NTBACKUP.EXE job: SCHTASKS /Create /S Server01 SCHTASKS /Create /S Server01 /SC DAILY /TN MyServer-SystemState-Job /SC DAILY /TN MyServer-SystemState-Job /TR “ntbackup /TR “ntbackup /J SystemState-Daily-Job /J SystemState-Daily-Job /N SystemStateJob /N SystemStateJob /F d:\backups\Server01-SS.bkf /F d:\backups\Server01-SS.bkf /V:yes /R:no /L:s /M copy /RS:no” /V:yes /R:no /L:s /M copy /RS:no” /ST 01:01:00 /ST 01:01:00 /RU MyBackupUser /RP secretpassword /RU MyBackupUser /RP secretpassword

32 32AETA October 2007Shelby County Schools SCHTASKS.EXE Example #2 Here’s a sample command line to create a Scheduled Tasks than runs a GZIP.EXE job: SCHTASKS /Create /S Server01 SCHTASKS /Create /S Server01 /SC DAILY /TN FileZipper-Job /SC DAILY /TN FileZipper-Job /TR “gzip d:\mybackupfiles\*.* -9 –d –f” /TR “gzip d:\mybackupfiles\*.* -9 –d –f” /ST 04:00:00 /ST 04:00:00 /RU MyBackupUser /RP secretpassword /RU MyBackupUser /RP secretpassword

33 33AETA October 2007Shelby County Schools SCHTASKS.EXE Example #3 Here’s a sample command line to create a Scheduled Tasks that creates a Shadow Copy using VSSADMIN.EXE: SCHTASKS /Create /S Server01 SCHTASKS /Create /S Server01 /SC DAILY /SC DAILY /TN VolumeShadowCopy-Fdrive /TN VolumeShadowCopy-Fdrive /TR “vssadmin create shadow /for=I:” /TR “vssadmin create shadow /for=I:” /ST 15:06:00 /ST 15:06:00 /RU MyBackupUser /RU MyBackupUser /RP secretpassword /RP secretpassword

34 34AETA October 2007Shelby County Schools Got a Question? Drop me an … Thank You! Thank You!


Download ppt "Enhancing Windows Server 2003 Backups Using tools built-in to Server 2003, and those available free, to enhance & supplement your Data Backup strategy."

Similar presentations


Ads by Google