read-only-mode
Manage Microsoft SQL Server READ ONLY mode
Subcommands
start
Switch database into READ ONLY modeexit
Switch database into RESTORING modeenable-schedule-function
Turn on scheduled READ ONLY modedisable-schedule-function
Turn off scheduled READ ONLY modelist-schedules
List READ ONLY mode schedulescreate-schedule
Create READ ONLY mode scheduleenable-schedule
Enable/disable READ ONLY mode scheduledisable-schedule
Enable/disable READ ONLY mode scheduleedit-schedule
Edit READ ONLY mode scheduleremove-schedule
Remove READ ONLY mode schedule
start
dbvcli read-only-mode start {-d|--name} CONFIGURATION_NAME [--OPTIONS]
Switch database into READ ONLY mode
Option | Type | Description |
---|---|---|
| string | directory in which to create standby file |
exit
dbvcli read-only-mode exit {-d|--name} CONFIGURATION_NAME
Switch database into RESTORING mode
enable-schedule-function
Turn on scheduled READ ONLY mode
disable-schedule-function
Turn off scheduled READ ONLY mode
list-schedules
List READ ONLY mode schedules
create-schedule
Create READ ONLY mode schedule
Option | Type | Description |
---|---|---|
| string | directory in which to create standby file |
| string | cron expression specifying when to activate READ ONLY mode |
| number | duration of READ ONLY mode, in minutes |
| string | name of schedule (optional) |
enable-schedule
Enable/disable READ ONLY mode schedule
Option | Type | Description |
---|---|---|
| string, required | READ ONLY mode schedule ID to enable/disable |
disable-schedule
Enable/disable READ ONLY mode schedule
Option | Type | Description |
---|---|---|
| string, required | READ ONLY mode schedule ID to enable/disable |
edit-schedule
Edit READ ONLY mode schedule
Option | Type | Description |
---|---|---|
| string, required | READ ONLY mode schedule ID to edit |
| string | cron expression specifying when to activate READ ONLY mode |
| number | duration of READ ONLY mode, in minutes |
| string | name of schedule (optional) |
remove-schedule
Remove READ ONLY mode schedule
Option | Type | Description |
---|---|---|
| string, required | READ ONLY mode schedule ID to remove |