--- name: cli-backup-sync description: Backup and restore OmniRoute data from the CLI. Trigger incremental snapshots, sync to cloud storage, manage backup schedules, and restore from archive files. --- ## Overview Backup and restore OmniRoute data from the CLI. Trigger incremental snapshots, sync to cloud storage, manage backup schedules, and restore from archive files. ## Quick install ```bash npm install -g omniroute # or: npx omniroute omniroute --version ``` ## Subcommands ### `backup` **Example:** ```bash omniroute backup ``` ### `backup create` **Flags:** - `--name ` - `--cloud` - `--encrypt` - `--key-file ` - `--exclude ` - `--retention ` **Example:** ```bash omniroute backup create ``` ### `backup auto` **Example:** ```bash omniroute backup auto ``` ### `backup enable` **Flags:** - `--cron ` - `--cloud` - `--encrypt` - `--retention ` **Example:** ```bash omniroute backup enable ``` ### `backup disable` **Example:** ```bash omniroute backup disable ``` ### `backup status` **Flags:** - `--name ` - `--cloud` - `--encrypt` - `--key-file ` - `--exclude ` - `--retention ` **Example:** ```bash omniroute backup status ``` ### `backup restore [backupId]` **Flags:** - `--list` - `--yes` **Example:** ```bash omniroute backup restore [backupId] ``` ### `task` **Example:** ```bash omniroute task ``` ### `cloud create` **Flags:** - `--title ` - `--prompt

` - `--prompt-file ` - `--repo ` - `--branch ` - `--metadata ` **Example:** ```bash omniroute cloud create ``` ### `cloud list` **Flags:** - `--status ` - `--limit ` **Example:** ```bash omniroute cloud list ``` ### `cloud get ` **Example:** ```bash omniroute cloud get ``` ### `cloud status ` **Example:** ```bash omniroute cloud status ``` ### `cloud cancel ` **Flags:** - `--yes` **Example:** ```bash omniroute cloud cancel ``` ### `cloud approve ` **Example:** ```bash omniroute cloud approve ``` ### `cloud message ` **Example:** ```bash omniroute cloud message ``` ### `cloud sources ` **Example:** ```bash omniroute cloud sources ``` ### `cloud cloud` **Example:** ```bash omniroute cloud cloud ``` ### `cloud agents` **Example:** ```bash omniroute cloud agents ``` ### `cloud auth` **Flags:** - `--no-browser` - `--timeout ` **Example:** ```bash omniroute cloud auth ``` ### `sync` **Example:** ```bash omniroute sync ``` ### `sync push` **Flags:** - `--target ` - `--bundle ` - `--dry-run` **Example:** ```bash omniroute sync push ``` ### `sync pull` **Flags:** - `--source ` - `--merge` - `--replace` - `--dry-run` **Example:** ```bash omniroute sync pull ``` ### `sync diff` **Flags:** - `--source ` - `--target ` **Example:** ```bash omniroute sync diff ``` ### `sync bundle ` **Flags:** - `--include ` **Example:** ```bash omniroute sync bundle ``` ### `sync import ` **Flags:** - `--dry-run` **Example:** ```bash omniroute sync import ``` ### `sync initialize` **Flags:** - `--from-cloud` **Example:** ```bash omniroute sync initialize ``` ### `sync tokens` **Example:** ```bash omniroute sync tokens ``` ### `sync list` **Example:** ```bash omniroute sync list ``` ### `sync create` **Flags:** - `--name ` - `--scope ` - `--ttl ` **Example:** ```bash omniroute sync create ``` ### `sync revoke ` **Flags:** - `--yes` **Example:** ```bash omniroute sync revoke ``` ### `sync status` **Example:** ```bash omniroute sync status ``` ### `sync resolve` **Example:** ```bash omniroute sync resolve ```