1 Command automatic backup and recovery
1.1 View disk identifier
Wbadmin get disks
1.2 Command automatic backup
Wbadmin enable backup -addtarget: disk identifier: -schedule: time -include: partition backed up:
Wbadmin enable backup -addtarget: {f086a0e0-0000-0000-0000-000000000000} -schedule:03:00 -include :E:
1.2.1 Adjust time
1.3 View version identifier
Wbadmin get versions
1.4 Recovery
wbadmin start recovery -version: version identifier -itemtype:volume -items: backed up partition: -recoverytarget: recovered partition: -quiet
wbadmin start recovery -version:11/29/2020-19:00 -itemtype:volume -items:E: -recoverytarget:E: -quiet
-version The backup version that needs to be restored, fill in the unique identifier of the backup version
-itemtype The type that needs to be restored volume app file
-items The list of items included in the backup (the directory where the backup data is )
-Recoverytarget The directory to restore to (The directory to restore.)
2 Schedule automatic backup
2.1. Cancel the previous task schedule (no need for the previous schedule)
15.1.1 Viewing the drive letter,
we need to back up the files to F drive
15.1.2 Create a backup script to
call up the suffix
Create a new document and enter the backup command
Rename and change the suffix name to .bat
Double click to open it is like this
15.2 Configure the
start of the scheduled task ---management tool---task scheduler
![]
15.2.1 Write a name and set the operating mode! []
15.2.2 Set the time to run the backup
Here we set up a backup every other week, every Sunday and Monday at 4 AM
15.2.3 Set script path
The password entered here is the password of the computer
Successful backup
Set time
16 Command recovery
16.1 View backup version sign
Use the one we just backed up to recover.
16.2 Recovery command
Wbadmin start recovery -version: version sign: -itemtype: volume -items: backed up partition: -recoverytarget: recovered partition: