Command automatic backup and restore

1 Command automatic backup and recovery
1.1 View disk identifier
Wbadmin get disks

Command automatic backup and restore

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:
Command automatic backup and restore

1.2.1 Adjust time
Command automatic backup and restore

Command automatic backup and restore
Command automatic backup and restore

1.3 View version identifier
Wbadmin get versions
Command automatic backup and restore
Command automatic backup and restore

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.)Command automatic backup and restore
Command automatic backup and restore

Command automatic backup and restore

2 Schedule automatic backup
2.1. Cancel the previous task schedule (no need for the previous schedule)
Command automatic backup and restore
Command automatic backup and restore
Command automatic backup and restoreCommand automatic backup and restore

15.1.1 Viewing the drive letter,
we need to back up the files to F drive
Command automatic backup and restore

15.1.2 Create a backup script to
call up the suffix
Command automatic backup and restore
Command automatic backup and restore

Create a new document and enter the backup command
Command automatic backup and restore

Rename and change the suffix name to .bat
Command automatic backup and restore

Double click to open it is like this
Command automatic backup and restore

15.2 Configure the
start of the scheduled task ---management tool---task scheduler
Command automatic backup and restore![]
Command automatic backup and restore

15.2.1 Write a name and set the operating mode! []
Command automatic backup and restore

15.2.2 Set the time to run the backup
Command automatic backup and restore

Here we set up a backup every other week, every Sunday and Monday at 4 AM
Command automatic backup and restore

15.2.3 Set script path
Command automatic backup and restoreCommand automatic backup and restore

Command automatic backup and restore

The password entered here is the password of the computer
Command automatic backup and restore

Successful backup
Command automatic backup and restore

Set time
Command automatic backup and restore
Command automatic backup and restore

16 Command recovery
16.1 View backup version sign
Command automatic backup and restore
Command automatic backup and restore

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:
Command automatic backup and restore
Command automatic backup and restore

Guess you like

Origin blog.51cto.com/15011774/2555739