Книга: Windows Server 2012 R2 Storage, Security, & Networking Pocket Consultant

Creating and scheduling backups with Wbadmin

Creating and scheduling backups with Wbadmin

One way to create manual backups is to use the Wbadmin START BACKUP command. START BACKUP accepts the following parameters:

? —backupTarget Sets the storage location for the backup as either a drive letter or UNC path to a shared folder on a remote server.

? —include Sets a comma-delimited list of volume drive letters, volume mount points, and GUID volume names to back up.

? —allCritical Includes all operating system volumes in the backup automatically.

? —inheritAcl Specifies that you want the backup folder at the remote shared folder to inherit the security permissions of the shared folder. If you do not specify this parameter, the backup folder is accessible only to the user you specify in the -user parameter, administrators, and backup operators.

? —noVerify Specifies that you do not want to verify backups written to removable media. If you do not specify this parameter, backups written to removable media are verified.

? —password Sets the password to use when connecting to the remote shared folder.

? —quiet Specifies that you want to run the command with no prompts to the user.

? —user Sets the user name to use when connecting to the remote shared folder.

? —vssFull Specifies that you want to perform a full backup by using VSS, which ensures that all server and application data is backed up. Do not use this parameter if you are using a third-party backup utility to back up application data.

To understand how START BACKUP is used, consider the following examples:

Performing a full backup of the server

wbadmin start backup -backupTarget: f: -vssfull

Backing up C and D to F

wbadmin start backup -backupTarget: f: -include: c:,d:

Backing up all critical volumes

wbadmin start backup -backupTarget: f: -allCritical

Backing up C and D to a remote shared folder

wbadmin start backup -backupTarget: fileserver27backups -include: c:,d:

-user: williams

If you want to create a schedule to run backups at different times on different days, you can use Task Scheduler to create the necessary tasks to run this command on the schedule you set. You can use Task Scheduler and Wbadmin to schedule tasks to run backups by following these steps:

1. In Computer Management, tap or click Task Scheduler. You are connected to the local computer by default. As necessary, connect to the computer that you want to access.

2. Press and hold or right-click the Task Scheduler node, and then tap or click Create Task. This opens the Create Task dialog box.

3. On the General tab, enter the name of the task, and then set security options for running the task.

? If the task should run under a user other than the current user, tap or click Change User Or Group. In the Select User Or Group dialog box, select the user or group under which the task should run, and then provide the appropriate credentials when prompted later.

? Set other run options as necessary. By default, tasks run only when a user is logged on. If you want to run the task regardless of whether a user is logged on, select Run Whether User Is Logged On Or Not. You can also elect to run with highest privileges and configure the task for earlier releases of Windows.

4. On the Triggers tab, tap or click New. In the New Trigger dialog box, select On A Schedule in the Begin The Task list. Use the options provided to set the run schedule, and then tap or click OK.

5. On the Actions tab, tap or click New. In the New Action dialog box, select Start A Program in the Action list.

6. In the Program/Script text box, enter %windir%System32wbadmin.exe .

7. In Add Arguments, enter the START BACKUP command you want to use along with its parameters, such as the following:

start backup -backupTarget: f: —-nclude: c:,d:,e: mountpoint,?volume{be345a23-32b2-432d-43d2-7867ff3e3432}

8. Tap or click OK to close the New Action dialog box.

9. On the Conditions tab, specify any limiting conditions for starting or stopping the task.

10. On the Settings tab, choose any additional optional settings for the task.

11. Tap or click OK to create the task.

Оглавление книги


Генерация: 1.460. Запросов К БД/Cache: 3 / 1
поделиться
Вверх Вниз