Standalone mo_ctl scheduled operations

These capabilities come from mo_ctl_standalone. Check the installed mo_ctl help and subcommand help for exact flags. Record mo_ctl version and verify configuration points to a dedicated instance.

Deployment mode and stop scope

Git mode starts from MO_PATH/matrixone; binary mode from MO_PATH; docker mode manages the configured container. Check MO_DEPLOY_MODE, MO_PATH and connection settings. In git/binary mode, stop can affect all mo-service processes on the machine: the configured path is not process isolation. Force uses forced termination. Verify independent backup/restore before production upgrades.

Inspect help before scheduling

mo_ctl version
mo_ctl get_conf MO_DEPLOY_MODE,MO_PATH
mo_ctl auto_backup help
mo_ctl auto_clean_logs help
mo_ctl auto_log_rotate help
mo_ctl monitor help
mo_ctl csv_convert help
mo_ctl backup help
mo_ctl restore help

Capability

Acceptance check

auto_backup / backup / restore

First back up manually to a separate location; restore into an isolated target and compare every field; check capacity and retention

auto_clean_logs / clean_logs

Confirm system log tables, time window and audit retention; canceling cannot restore deleted rows

auto_log_rotate

Check paths, rotation/compression and continued log writes; avoid overlapping logrotate jobs

monitor

Inspect subcommand help and collection time/instance; host resources differ from database readiness

csv_convert / ddl_convert

Validate quoting, separators, NULLs, encoding and types on a small sample; conversion does not prove migration compatibility

watchdog

Check restart target/frequency; automatic restart is not HA or root-cause repair

After configuring a schedule according to installed help, inspect the current user’s crontab commands, timezone and output paths, and observe one execution. Cron differs from the interactive shell; check PATH, dependencies and configuration permissions.

Inspect and cancel

mo_ctl auto_backup status
mo_ctl auto_clean_logs status
mo_ctl auto_log_rotate status
mo_ctl watchdog status

Cancel the corresponding schedules:

mo_ctl auto_backup disable
mo_ctl auto_clean_logs disable
mo_ctl auto_log_rotate disable
mo_ctl watchdog disable

Recheck status and crontab while preserving other jobs. Disable stops future scheduling; it does not remove backups, restore deleted logs or cancel already-running jobs. Return to tool selection.