Back up Windows using Wbadmin

Το βοηθητικό πρόγραμμα Wbadmin είναι ένα της γραμμής εντολών των Windows, που σας επιτρέπει να δημιουργήσετε αντίγραφα ασφαλείας όλου του συστήματος σας ή να δημιουργήσετε αντίγραφα ασφαλείας για επιμέρους μονάδες, καταλόγους, αρχεία και να επαναφέρετε τα δεδομένα σας από ένα τέτοιο αντίγραφο ασφαλείας.

wbadmin

The Wbadmin tool can be used to automate backups on all modern versions of Windows. Earlier versions of Windows, from Vista and earlier, had another built-in utility, the NTBackup, which was used for the αντιγράφων ασφαλείας. Οι εναπομείναντες χρήστες τον they have it in their system.

WBADMIN FEATURES
The capabilities of Wbadmin.exe are quite different in desktop versions compared to Windows server versions. For example, in Windows 10, you can set the following available wbadmin subcommands:

wbadmin.exe /?

wbadmin 1.0 - Backup command-line tool (Backup command line tool)
(C) Copyright Microsoft Corporation. All Rights Reserved.

  • ENABLE BACKUP - Creates or modifies a daily backup schedule. (Create or modify a scheduled backup job.)
  • DISABLE BACKUP - Disables the scheduled backups. (Disable automatic backup work)
  • START BACKUP - Runs a one-time backup. (Start the backup once)
  • STOP JOB — Stops the currently running backup or recovery operation. (Stop her of backup or restore).
  • GET VERSIONS - Lists details of backups that can be recovered from a specified location. (List of available copies in the specified storage)
  • GET ITEMS - Lists items contained in a backup. (See the list of items stored in a backup)
  • GET STATUS - Reports the status of the currently running operation. (Display the status of a current backup or restore job)
  • DELETE BACKUP - Deletes one or more backups. (Delete one or more backups)

To use the wbadmin utility on Windows Server 2016/2012 R2, you must install the Windows Server Backup component using Server Manager or PowerShell:

Install-WindowsFeature -name Windows-Server-Backupwbadmin

In Windows Server 2016, the wbadmin utility supports more options and features, as follows:

  • GET DISKS
  • GET VIRTUALMACHINES
  • START SYSTEMSTATERECOVERY
  • START SYSTEMSTATEBACKUP
  • DELETE SYSTEMSTATEBACKUP

 

HOW WRITTEN
First you have to run it Command Prompt with administrator privileges. For each subdomain of Wbadmin there is a list of individual switches that can customize its operation to your liking. To see these switches for each sub-command, ask for the corresponding help. For example to see the START BACKUP switches enter:

wbadmin start backup /?

As you can see, the wbadmin tool in Windows 10 is capable of backing up your Windows image and individual drives.

For example, you can make a backup image of the Windows 10 operating system, add the F: disk to the backup, and burn it to a D: drive. The command would be formulated as follows:

wbadmin start backup -backupTarget: D: -include: F: -allCritical –quiet

When you make a backup, the directory is created automatically WindowsImageBackup to the disk specified in the backupTarget parameter, in which the system backup image is stored. BackupTarget can not be the disk that contains your operating system, nor what is stated on the include switch.

The include parameter allows you to specify the disks to be included in the image backup.

The allCritical parameter is used to ensure that all partitions needed to restore the system are added to the backup.

The quiet parameter is used to make the backup in the background.

When you run the backup command, you will see the progress of the backup and the list of partitions that will be contained in it.

 

OTHER EXAMPLES
Note that the Windows backup system relies on the Volume Shadow Copy Service (VSS). The wbadmin utility first creates a shadow snapshot of the specified volume and then creates a system backup image based on that snapshot. His performance may decrease during backup.

A. You can back up multiple folders and save them on a separate drive:

wbadmin start backup –backupTarget: d: -include: c: \ docs \, c: \ backup -vsscopy

B. You can also save the backup to a shared network folder:

wbadmin start backup –backupTarget: \ srv1 \ backup -include: c: \ docs \, c: \ backup

Note. This feature of wbadmin is not supported on desktop versions of Windows. If you execute such a command, an error will occur.

C. You can create an automatic backup task that backs up a system image and a specific folder or drivers once a day:

wbadmin enable backup -include: c: \ docs \ * -addtarget: d: -allCritical -schedule: 00: 00

D. The list of available copies can be displayed with the command:

wbadmin get versions

E. Delete all copies except the last two (0 - delete all backups):

wbadmin delete systemstatebackup -keepversions: 2

F. You can only delete the older backup:

wbadmin delete systemstatebackup –backupTarget: d: –deleteOldest -quiet

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.100 registrants.

Written by Dimitris

Dimitris hates on Mondays .....

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).