10.1 SqlServer backup
First, please refer to Chapter 4 Configuring Instances to configure the corresponding SqlServer instance information for the source Client. Just as a Client has multiple SqlServer instances, it can be configured multiple times.
You can also manually query the SqlServer parameters and later verify the automatic scan results.
Log in to SqlServer Managerment studio:
After entering the account password, connect and create a new query.
Note that this is only the query result of one SQL Server instance. If you have multiple instances, you need to log in to different instances and query multiple times.
The above results can be compared with the automatic scanning results, and the query results should prevail.
After configuring the instance:
Start creating a new SQL Server plan from the left navigation bar [Plan] - [Database Backup] - [+], in 5 steps:
The first step is to select the data content.
Give the plan a name, select the data type SQL Server, select Client and instance, and the system will automatically scan all databases under that instance (note that the system databases of SQL Server such as master/model/msdb/tempdb have been hidden). The backup data list can be expanded later.
After selecting the database you need to backup, click [Next]:
Step two, select storage:
Please select the storage pre-configured in Chapter 5 Configuring Storage . Click [Next] to continue:
Step three, set a time plan.
Refer to Chapter 6, Section 1, Automatic Trigger of Backup Plan to configure the trigger time of the plan.
Click [Next] to continue:
Fourth step, advanced options:
Please refer to Chapter 6, Section 4, Advanced options for backup plans and Section 5, before and after scripts to check.
Click [Submit] to save the policy in the fifth step.
You can then refer to Chapter 6, Section 2, Manual Trigger of Backup Plan to run the plan manually. You can also wait for the scheduled automatic trigger of the plan.
You can also use the following SQL statements to detect the current backup status of the SQL Server system:
Query explanation:
MSDBDatabase: This is one of the SQL Server system databases that stores information about backup and maintenance schedules.Backupsettable: Contains information about each backup operation.Backupmediafamilytable: contains information about the backup media.Typecolumn: Indicates the backup type (D = database (full) backup, I = differential backup, L = log backup).physical_device_nameColumn: Displays the path or device name of the backup file.
Steps:
Log in to SQL Server :
Open SQL Server Management Studio (SSMS) or log in to SQL Server using a command-line tool such as sqlcmd.
Execute query :
Paste the above SQL statement in the new query window of SSMS and execute it, or save the query as a
.sqlfile and execute it using sqlcmd.
Example result:
MyDatabase
2023-07-01 02:00:00.000
2023-07-01 02:15:00.000
Full
C:\Backups\MyDatabase_Full.bak
MyDatabase
2023-07-02 02:00:00.000
2023-07-02 02:05:00.000
Differential
C:\Backups\MyDatabase_Diff.bak
MyDatabase
2023-07-02 04:00:00.000
2023-07-02 04:01:00.000
Log
C:\Backups\MyDatabase_Log.trn
...
Check cross backup
By looking at the
backup_start_dateandbackup_finish_date, you can check if there are any crossovers.physical_device_nameCan help you identify whether the backup file was generated by AvatarStor.
Last updated