Skip to content

Commit 834904b

Browse files
committed
readme edited cosmetically
loop count corrected
1 parent 2d886de commit 834904b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

recipes/python/backup-restore/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,10 @@ Execution flow of group VM backup and restore script:
136136
- Perform bulk restore
137137
- Perform the cleanup(e.g. remove bulk instant access VMs, subscription, protection plan, VM group and vcenter)
138138

139-
#### - Microsoft SQL Server Protection and Recovery workflow
139+
# - Microsoft SQL Server Protection and Recovery workflow
140140

141-
This mssql_db_backup_restore.py script demonstrates how to Protect a MSSQL Database or Instance using a protection plan, and perform a alternate database recovery using NetBackup APIs.
141+
Use the following commands to run the scripts.
142+
### This mssql_db_backup_restore.py script demonstrates how to Protect a MSSQL Database or Instance using a protection plan, and perform a alternate recovery of a single database or all user databases using NetBackup APIs.
142143

143144
`python -W ignore recipes/python/backup-restore/mssql_db_backup_restore.py --master_server <master_server> --master_server_port 1556 --master_username <master_username> --master_password <master_password> --mssql_instance <mssql_instance_name> --mssql_database <mssql_database_name> --mssql_server_name <mssql_server_name> --mssql_use_localcreds 0 --mssql_domain <mssql_domain> --mssql_username <mssql_sysadmin_user> --mssql_password <mssql_sysadmin_pwd> --stu_name <storage_unit_used_in_protection_plan> --protection_plan_name <protection_plan_name> --asset_type <mssql_asset_type> --restore_db_prefix <mssql_restore_database_name_prefix> --restore_db_path <mssql_restore_database_path> --recoveralluserdbs <0|1>`
144145

recipes/python/backup-restore/workload_mssql.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ def get_mssql_alldbs(baseurl, token, host_name, instance_name='MSSQLSERVER'):
5151
print(f"status code is [{status_code}]")
5252
if (status_code == 200):
5353
limit = len(response_text['data'])
54-
limit = limit - 1
5554
for i in range(0,limit,1):
5655
attr = response_text['data'][i]['attributes']
5756
assetid = response_text['data'][i]['id']

0 commit comments

Comments
 (0)