Backup3G/EWC/User Guide/Defining Windows Backups
This page was last modified 08:09, 21 February 2008.From Documentation
Revision as of 12:31, 17 April 2006 Moff (Talk | contribs) (→How to Define a Backup Item) ← Previous diff |
Current revision Moff (Talk | contribs) (→How to Define a Backup Item) |
||
Line 2: | Line 2: | ||
*you define a backup item for each data object to be backed up | *you define a backup item for each data object to be backed up | ||
*you define backup jobs to back up one or more items at the scheduled time to a particular drive or drive pool | *you define backup jobs to back up one or more items at the scheduled time to a particular drive or drive pool | ||
+ | |||
The main differences are: | The main differences are: | ||
*in the backup item you use a Windows specific backup method instead of one of the standard UNIX methods | *in the backup item you use a Windows specific backup method instead of one of the standard UNIX methods | ||
*support for Windows Registry backup | *support for Windows Registry backup | ||
- | *backup items to control starting and stopping Windows services | + | *support for Windows System State backup |
+ | *backup items to control starting and stopping Windows services. | ||
+ | |||
+ | :{{Note| Backup on Windows requires the NTCPIO proprietary backup format.}} | ||
- | '''Note -''' Backup on Windows requires the NTCPIO proprietary backup format. | ||
This guide describes the ways you can back up Windows filesystems, the Registry, how to control services and how to define backup items. Defining, scheduling, and monitoring backup jobs are described in the backup3G User Guide. | This guide describes the ways you can back up Windows filesystems, the Registry, how to control services and how to define backup items. Defining, scheduling, and monitoring backup jobs are described in the backup3G User Guide. | ||
Line 14: | Line 17: | ||
<br> | <br> | ||
== Windows Backup Methods == | == Windows Backup Methods == | ||
+ | |||
This topic describes the different methods for backing up Windows data. The backup facilities provided include starting and stopping services (some data cannot be backed up unless it’s associated service has been shutdown), backing up the registry, user profiles, files and directories. | This topic describes the different methods for backing up Windows data. The backup facilities provided include starting and stopping services (some data cannot be backed up unless it’s associated service has been shutdown), backing up the registry, user profiles, files and directories. | ||
<br> | <br> | ||
=== What happens if a step fails === | === What happens if a step fails === | ||
- | ‘Exit status 2’ usually indicates a usage error in the backup command, such as an unrecognized option or an incorrect number of arguments. Other exit statuses are dependent on the backup method—check the manual page for the command that reported the error. | + | |
+ | ‘Exit status 2’ usually indicates a usage error in the backup command, such as an unrecognised option or an incorrect number of arguments. Other exit statuses are dependent on the backup method—check the manual page for the command that reported the error. | ||
Any previous steps that wrote to the tape and completed successfully may be restored from, but depending on the type of backup may not be worth recovering. The System Administrator should examine the reason for failure and the type of object in the successful backup steps to see whether they can be usefully recovered. | Any previous steps that wrote to the tape and completed successfully may be restored from, but depending on the type of backup may not be worth recovering. The System Administrator should examine the reason for failure and the type of object in the successful backup steps to see whether they can be usefully recovered. | ||
Line 37: | Line 42: | ||
Some services have files permanently open and/or write to files while they are running. Sometimes these type of services must be shutdown before their associated files can be backed up. EWC provides methods for starting and stopping Windows services. The definition of these methods is straight forward, enter the name of the service to be started or stopped in the Object field. | Some services have files permanently open and/or write to files while they are running. Sometimes these type of services must be shutdown before their associated files can be backed up. EWC provides methods for starting and stopping Windows services. The definition of these methods is straight forward, enter the name of the service to be started or stopped in the Object field. | ||
- | + | {{Note |You will need to order the backup items in the backup job so that the services are stopped before their associated data is backed up. You will also need to define a backup item to restart the service on completion of the backup.}} | |
- | '''Notes''' | + | |
- | + | ||
- | You will need to order the backup items in the backup job so that the services are stopped before their associated data is backed up. You will also need to define a backup item to restart the service on completion of the backup. | + | |
<br> | <br> | ||
Line 55: | Line 57: | ||
|} | |} | ||
- | + | <br> | |
- | '''Steps''' | + | |
- | + | ||
backup3G performs the following steps when you back up the Windows registry using the ‘registry backup’ method. | backup3G performs the following steps when you back up the Windows registry using the ‘registry backup’ method. | ||
#Dump registry keys to temporary files. | #Dump registry keys to temporary files. | ||
#Backup temporary registry files. | #Backup temporary registry files. | ||
#Remove temporary files. | #Remove temporary files. | ||
- | + | {{Note |Only the registry keys that are not dynamic or hardware dependent are backed up. These are the keys under ''HKEY_LOCAL_MACHINE'', excluding the ''HARDWARE'' key.}} | |
- | '''Notes''' | + | |
- | + | ||
- | Only the registry keys that are not dynamic or hardware dependent are backed up. These are the keys under HKEY_LOCAL_MACHINE, excluding the HARDWARE key. | + | |
<br> | <br> | ||
Line 80: | Line 77: | ||
|} | |} | ||
+ | <br> | ||
The profile backup method is used to back up user profiles. These are the configuration and desktop settings associated with a particular user. This information is usually stored in a directory with the same name as the user. The directory contains files | The profile backup method is used to back up user profiles. These are the configuration and desktop settings associated with a particular user. This information is usually stored in a directory with the same name as the user. The directory contains files | ||
and sub-directories that are used to store the information associated with that user. | and sub-directories that are used to store the information associated with that user. | ||
+ | {{Note |Certain profile files cannot be backed up if the associated user is logged in. All users should be logged out before performing a profile backup. The profile backup uses the NTCPIO format and files are backed up using absolute references.}} | ||
- | '''Notes''' | + | <br> |
+ | == System State Backup == | ||
- | Certain profile files cannot be backed up if the associated user is logged in. All users should be logged out before performing a profile backup. The profile backup uses the NTCPIO format and files are backed up using absolute references. | + | {| border="1" cellpadding="8" cellspacing="0" |
+ | |- | ||
+ | |Backup method | ||
+ | |system state | ||
+ | |- | ||
+ | |Backup command | ||
+ | |FSsysstate | ||
+ | |} | ||
+ | |||
+ | <br> | ||
+ | The profile backup method is used to back up user profiles. These are the configuration and desktop settings associated with a particular user. This information is usually stored in a directory with the same name as the user. The directory contains files | ||
+ | and sub-directories that are used to store the information associated with that user. | ||
+ | {{Note |Certain profile files cannot be backed up if the associated user is logged in. All users should be logged out before performing a profile backup. The profile backup uses the NTCPIO format and files are backed up using absolute references.}} | ||
<br> | <br> | ||
Line 94: | Line 106: | ||
|- | |- | ||
|Backup methods | |Backup methods | ||
- | |full ntcpio<br>full ntcpio - MP<br><br>incremental ntcpio<br>incr ntcpio - MP<br><br>selected ntcpio<br>selected ntcpio - MP | + | |full ntcpio<br><br>differential ntcpio<br><br>selected ntcpio |
+ | |full ntcpio - MP<br><br>differential ntcpio - MP<br><br>selected ntcpio - MP | ||
|- | |- | ||
|Backup command | |Backup command | ||
|FSntcpio | |FSntcpio | ||
+ | |FSmntcpio | ||
|} | |} | ||
+ | <br> | ||
These methods are used to back up files and directories on Windows. These methods can be used on both NTFS and FAT filesystems. Objects or directories to be backed up can be specified using either the Windows format (''example: C:/'') or the POSIX format (''Example: //C/''). | These methods are used to back up files and directories on Windows. These methods can be used on both NTFS and FAT filesystems. Objects or directories to be backed up can be specified using either the Windows format (''example: C:/'') or the POSIX format (''Example: //C/''). | ||
- | '''Caution -''' If you have an earlier version of EWC installed there will be other Windows backup methods available. Be sure to choose the correct methods or the backup will not work. | ||
'''Example: back up “Program Files” directory''' | '''Example: back up “Program Files” directory''' | ||
Line 110: | Line 124: | ||
This backup will use the NTCPIO format and will keep an online index for quick recovery of files. | This backup will use the NTCPIO format and will keep an online index for quick recovery of files. | ||
- | #Select COS/Backup configuration > Maintain backup jobs > Items > Maintain then select Maintain > Add. | + | #Select {{cnav| Backup3G configuration > Tools > Items}} then select {{cnav| Item > Add}} |
- | #Accept the default item number. | + | #Select {{cnav| Backup a Microsoft Windows folder or drive}} |
- | #Type in the directory name: C:/Program Files. Alternatively you could have entered the directory name using the POSIX syntax: //C/Program Files. | + | |
#Select the name of your host machine. You can press choose to see the list of all the available hosts at your site. | #Select the name of your host machine. You can press choose to see the list of all the available hosts at your site. | ||
- | #Press Choose to display the valid backup methods. Choose full ntcpio. | + | #Type in the folder name: <tt>C:/Program Files</tt>. Alternatively you could have explored the Windows host for the folder. |
- | #Set Index to ‘yes’. | + | #Uncheck ''Multi-part?''. |
- | #Enter in the Options field: -x “*/*.dll” | + | #Enter in the ''Exclude pattern(s)'' field: <tt>*/*.dll</tt> |
- | #Now enter a comment such as “Full backup of Program Files directory” | + | #The comment will be automatically set to “Full ntcpio backup of C:/Program Files” |
#Set On error to ‘abort’. | #Set On error to ‘abort’. | ||
- | + | #Press Accept to add this item. | |
- | Press Accept to add this item. | + | |
You can now select this item when defining a step in a backup job. | You can now select this item when defining a step in a backup job. | ||
Line 127: | Line 139: | ||
== Defining Windows Backups == | == Defining Windows Backups == | ||
+ | |||
You must define a backup item for each type of backup that you want to perform. Once you have defined all your backup items, you must define a set of backup jobs to back up these items at the scheduled times. | You must define a backup item for each type of backup that you want to perform. Once you have defined all your backup items, you must define a set of backup jobs to back up these items at the scheduled times. | ||
<br> | <br> | ||
=== How to Define a Backup Item === | === How to Define a Backup Item === | ||
+ | |||
A ''backup item'' describes the ‘what’ and ‘how’ of a backup. It identifies the host name, the object and the method that will be used to back it up. | A ''backup item'' describes the ‘what’ and ‘how’ of a backup. It identifies the host name, the object and the method that will be used to back it up. | ||
Each backup method calls a driver script to back up the data. Table 1 shows the backup command and other attributes for each Windows backup method. | Each backup method calls a driver script to back up the data. Table 1 shows the backup command and other attributes for each Windows backup method. | ||
+ | |||
{| border="1" cellpadding="8" cellspacing="0" | {| border="1" cellpadding="8" cellspacing="0" | ||
Line 158: | Line 173: | ||
|Registry backup | |Registry backup | ||
|registry backup | |registry backup | ||
- | |ntcpio FSregback yes | + | |ntcpio |
- | |Profile backup profile backup ntcpio FSregback yes | + | |FSregback |
- | |Files/Directories full ntcpio | + | |yes |
- | |full ntcpio - MP | + | |- |
- | |incremental ntcpio | + | |Profile backup |
- | |incr ntcpio - MP | + | |profile backup |
- | |selected ntcpio | + | |ntcpio |
- | |selected ntcpio - MP | + | |FSregback |
- | |ntcpio FSntcpio yes | + | |yes |
+ | |- | ||
+ | |System State backup | ||
+ | |system state backup | ||
+ | |ntcpio | ||
+ | |FSsysstate | ||
+ | |no | ||
+ | |- | ||
+ | |Files/Folders | ||
+ | |full ntcpio<br><br>differential ntcpio<br><br>selected ntcpio | ||
+ | |ntcpio | ||
+ | |FSntcpio | ||
+ | |yes | ||
+ | |- | ||
+ | |Files/Folders | ||
+ | |full ntcpio - MP<br><br>differential ntcpio - MP<br><br>selected ntcpio - MP | ||
+ | |ntcpio | ||
+ | |FSmntcpio | ||
+ | |yes | ||
|} | |} | ||
- | You can use the Options field to pass extra flags and arguments to the backup | ||
- | command. To see what options are supported by each method, check the manual | ||
- | page for that driver script. | ||
- | |||
- | Example: the options for the ‘registry backup method’ are described in the FSregback | ||
- | manual page. | ||
- | |||
- | Note that these options are not validated when you define the backup item, but are | ||
- | simply passed to the backup command to be evaluated at run time. | ||
'''To define a backup item''' | '''To define a backup item''' | ||
- | #Select backup3G configuration > Maintain backup jobs. | + | |
- | #Select Items > Maintain to display the list of existing backup items, | + | #Select {{cnav| Backup3G configuration > Tools > Items}} |
- | then select Maintain > Add. | + | #Select {{cnav| Item > Add}} |
- | Figure 11 — Adding a backup item | + | #;Host: Select the host on which the item is to be performed. If you want to perform the same item on multiple hosts, you must define a separate backup item for each. |
- | Item Defaults to one more than the current highest item number. You | + | #;Folder: Enter the folder or object to be backed up or acted upon. Ensure that it is correct as backup3G doesn’t check that it exists at this point. |
- | can change it to any unused item number, but it is recommended | + | #;Backup type: Select ''Full'' or ''Differential'' |
- | that you accept the default. | + | #;Index: Select ‘yes’ if you want an index and the method you chose supports an index. An online index makes it easier to select items to be restored. |
- | Object Enter the object to be backed up or acted upon. Ensure that it is | + | #:Other options are available dependant on the backup method chosen. |
- | correct as backup3G doesn’t check that it exists at this point. | + | #;Comment: A descriptive comment will be automatically set. You can change this if you wish |
- | Host Select the host on which the item is to be performed. If you want | + | #;On error: Should the backup job continue if this step fails? Select ‘continue’ if the job should continue after an error in this step. Select ‘abort’ if the job should not continue. |
- | to perform the same item on multiple hosts, you must define a | + | #Press Accept to save this item. |
- | separate backup item for each. | + | |
- | Defining Windows Backups 37 | + | |
- | Method Press Choose to list the backup methods. The Windows backup | + | |
- | methods are described in detail in Windows NT Backup Methods on | + | |
- | page 31. | + | |
- | Index Select ‘yes’ if you want an index and the method you chose | + | |
- | supports an index. An online index makes it easier to select items | + | |
- | to be restored. | + | |
- | Options Enter any optional flags and arguments to be passed to the backup | + | |
- | command at run time. | + | |
- | You can see what other options this backup method supports by | + | |
- | checking the man page for the corresponding backup driver script. | + | |
- | Table 1 on page 35 shows what driver script is run by each | + | |
- | Windows backup method. | + | |
- | Note Use double quotes around file patterns to ensure that they are parsed | + | |
- | correctly. | + | |
- | Comment Enter a descriptive comment. | + | |
- | On error Should the backup job continue if this step fails? Select ‘continue’ | + | |
- | if the job should continue after an error in this step. Select ‘abort’ | + | |
- | if the job should not continue. | + | |
- | Press Accept to save this item. | + | |
<br> | <br> | ||
- | == [[Recovery for Windows]] == | + | == [[Backup3G/EWC/User Guide/Recovery for Windows|Recovery for Windows]] == |
Current revision
EWC backups are configured the same as other backup jobs:
- you define a backup item for each data object to be backed up
- you define backup jobs to back up one or more items at the scheduled time to a particular drive or drive pool
The main differences are:
- in the backup item you use a Windows specific backup method instead of one of the standard UNIX methods
- support for Windows Registry backup
- support for Windows System State backup
- backup items to control starting and stopping Windows services.
Note | |
Backup on Windows requires the NTCPIO proprietary backup format. |
This guide describes the ways you can back up Windows filesystems, the Registry, how to control services and how to define backup items. Defining, scheduling, and monitoring backup jobs are described in the backup3G User Guide.
Contents |
Windows Backup Methods
This topic describes the different methods for backing up Windows data. The backup facilities provided include starting and stopping services (some data cannot be backed up unless it’s associated service has been shutdown), backing up the registry, user profiles, files and directories.
What happens if a step fails
‘Exit status 2’ usually indicates a usage error in the backup command, such as an unrecognised option or an incorrect number of arguments. Other exit statuses are dependent on the backup method—check the manual page for the command that reported the error.
Any previous steps that wrote to the tape and completed successfully may be restored from, but depending on the type of backup may not be worth recovering. The System Administrator should examine the reason for failure and the type of object in the successful backup steps to see whether they can be usefully recovered.
Controlling Services
Backup methods | start service stop service |
Backup command | service |
Some services have files permanently open and/or write to files while they are running. Sometimes these type of services must be shutdown before their associated files can be backed up. EWC provides methods for starting and stopping Windows services. The definition of these methods is straight forward, enter the name of the service to be started or stopped in the Object field.
Note | |
You will need to order the backup items in the backup job so that the services are stopped before their associated data is backed up. You will also need to define a backup item to restart the service on completion of the backup. |
Registry Backup
Backup method | registry backup |
Backup command | FSregback |
backup3G performs the following steps when you back up the Windows registry using the ‘registry backup’ method.
- Dump registry keys to temporary files.
- Backup temporary registry files.
- Remove temporary files.
Note | |
Only the registry keys that are not dynamic or hardware dependent are backed up. These are the keys under HKEY_LOCAL_MACHINE, excluding the HARDWARE key. |
Profile Backup
Backup method | profile backup |
Backup command | FSregback |
The profile backup method is used to back up user profiles. These are the configuration and desktop settings associated with a particular user. This information is usually stored in a directory with the same name as the user. The directory contains files
and sub-directories that are used to store the information associated with that user.
Note | |
Certain profile files cannot be backed up if the associated user is logged in. All users should be logged out before performing a profile backup. The profile backup uses the NTCPIO format and files are backed up using absolute references. |
System State Backup
Backup method | system state |
Backup command | FSsysstate |
The profile backup method is used to back up user profiles. These are the configuration and desktop settings associated with a particular user. This information is usually stored in a directory with the same name as the user. The directory contains files
and sub-directories that are used to store the information associated with that user.
Note | |
Certain profile files cannot be backed up if the associated user is logged in. All users should be logged out before performing a profile backup. The profile backup uses the NTCPIO format and files are backed up using absolute references. |
Data Backup
Backup methods | full ntcpio differential ntcpio selected ntcpio | full ntcpio - MP differential ntcpio - MP selected ntcpio - MP |
Backup command | FSntcpio | FSmntcpio |
These methods are used to back up files and directories on Windows. These methods can be used on both NTFS and FAT filesystems. Objects or directories to be backed up can be specified using either the Windows format (example: C:/) or the POSIX format (Example: //C/).
Example: back up “Program Files” directory
Define an item to back up the Program Files directory on a Windows host. Exclude any dll files from the backup.
This backup will use the NTCPIO format and will keep an online index for quick recovery of files.
- Select Backup3G configuration > Tools > Items then select Item > Add
- Select Backup a Microsoft Windows folder or drive
- Select the name of your host machine. You can press choose to see the list of all the available hosts at your site.
- Type in the folder name: C:/Program Files. Alternatively you could have explored the Windows host for the folder.
- Uncheck Multi-part?.
- Enter in the Exclude pattern(s) field: */*.dll
- The comment will be automatically set to “Full ntcpio backup of C:/Program Files”
- Set On error to ‘abort’.
- Press Accept to add this item.
You can now select this item when defining a step in a backup job.
Defining Windows Backups
You must define a backup item for each type of backup that you want to perform. Once you have defined all your backup items, you must define a set of backup jobs to back up these items at the scheduled times.
How to Define a Backup Item
A backup item describes the ‘what’ and ‘how’ of a backup. It identifies the host name, the object and the method that will be used to back it up.
Each backup method calls a driver script to back up the data. Table 1 shows the backup command and other attributes for each Windows backup method.
Windows Object | Method Name | Format | Driver Script | Index? |
---|---|---|---|---|
Stop a service | service stop | N/A | service | no |
Start a service | service start | N/A | service | no |
Registry backup | registry backup | ntcpio | FSregback | yes |
Profile backup | profile backup | ntcpio | FSregback | yes |
System State backup | system state backup | ntcpio | FSsysstate | no |
Files/Folders | full ntcpio differential ntcpio selected ntcpio | ntcpio | FSntcpio | yes |
Files/Folders | full ntcpio - MP differential ntcpio - MP selected ntcpio - MP | ntcpio | FSmntcpio | yes |
To define a backup item
- Select Backup3G configuration > Tools > Items
- Select Item > Add
- Host
- Select the host on which the item is to be performed. If you want to perform the same item on multiple hosts, you must define a separate backup item for each.
- Folder
- Enter the folder or object to be backed up or acted upon. Ensure that it is correct as backup3G doesn’t check that it exists at this point.
- Backup type
- Select Full or Differential
- Index
- Select ‘yes’ if you want an index and the method you chose supports an index. An online index makes it easier to select items to be restored.
- Other options are available dependant on the backup method chosen.
- Comment
- A descriptive comment will be automatically set. You can change this if you wish
- On error
- Should the backup job continue if this step fails? Select ‘continue’ if the job should continue after an error in this step. Select ‘abort’ if the job should not continue.
- Press Accept to save this item.