Preparations
Before you use Cloud Backup to back up a SQL Server database on an ECS instance or an on-premises server, create a backup account, configure its permissions, and configure the network.
Step 1: Get the required information
-
If you back up a database on an ECS instance, install Cloud Assistant for the instance.
The ECS backup client works in conjunction with Cloud Assistant.
-
If the ECS instance was purchased before December 1, 2017, you must install the Cloud Assistant client. For more information, see Install the Cloud Assistant client.
-
If the ECS instance was purchased after December 1, 2017, the Cloud Assistant client is installed by default.
-
-
Obtain the username and password for the SQL Server database.
Step 2: Create a backup account and configure permissions
-
Log on to the SQL Server database using SQL Server Management Studio (SSMS).
To download and install SSMS, see Download SQL Server Management Studio (SSMS).
-
Set the database recovery model to Full.
ImportantLog backups require the recovery model to be set to Full.
-
Right-click the database that you want to modify and select Properties.
-
On the Options page, set Recovery model to Full and click OK.
The following figure uses SQL Server 2008 R2 as an example.
-
-
Create a SQL Server user for backups.
-
Create a new logon in SSMS.
-
In Object Explorer, expand .
-
Right-click .
-
Set Login name to backupadmin, select SQL Server authentication, and then enter and confirm a password.
-
Deselect the User must change password at next logon check box.
The following figure uses SQL Server 2008 R2 as an example.
-
-
On the Server Roles page, grant the sysadmin and dbcreator roles to the account.
The following figure uses SQL Server 2008 R2 as an example.
-
On the User Mapping page, select the databases to back up, select the db_backupoperator and db_owner database role memberships, and then click OK.
The following figure uses SQL Server 2008 R2 as an example.
-
-
Enable SQL Server and Windows Authentication mode.
-
Right-click the server object and click Properties.
-
On the Security page, select SQL Server and Windows Authentication mode, and then click OK.
-
Step 3: Configure the network
-
Log on to the server where the SQL Server database is deployed.
-
Enable the TCP/IP protocol in SQL Server Network Configuration.
-
Open SQL Server Configuration Manager.
-
In SQL Server Configuration Manager, navigate to SQL Server Network Configuration > Protocols for MSSQLSERVER. Right-click TCP/IP and click Enable.
The following figure uses SQL Server 2008 R2 as an example.
-
Restart the SQL Server service.
-
What to do next
Register an SQL Server instance (ECS) or Register an SQL Server instance (on-premises)