Hasleo Backup Suite provides a Command Line Interface (CLI) program that allows you to perform backup tasks through scripts (such as batch file, PowerShell, etc.) or cmd.exe in Windows. In the current version of Hasleo Backup Suite, the CLI only supports performing backup tasks. Support for additional functions is planned for future updates.
Step 1. Run the Windows Command Prompt as administrator.
Step 2. Navigate to the bin folder under the installation directory of Hasleo Backup Suite by typing in:
cd C:\Program Files\Hasleo\Hasleo Backup Suite\bin
Tips: If you installed the program in a different location, enter that location instead.
Step 3. Type "BackupCmdUI.exe /?" for help, all the command and parameters of this tool will be listed as below:
Hasleo Backup Suite Command Line Tool [Version 5.0 (Build: Mar 12 2025)]
Copyright (C) 2023 Hasleo Software. All rights reserved.
| /a <action> | Specifies the action (tasks/run) you want to perform. | |
|---|---|---|
| tasks: list the details of all tasks | ||
| run: run the specified backup task | ||
| /? | Produce a help message. |
| /? | Produce a help message. |
|---|
| /g <guid> | Specifies the GUID of the task that you want to run. You can perform the | |
|---|---|---|
| 'tasks' operation to view the GUIDs of all tasks. | ||
| /t <type> | (Optional) Specifies the backup type, it defaults to 0 if not provided. | |
| 0: full backup 1: incremental backup 2: differential backup |
||
| /s <silent> | (Optional) Specifies the silent mode, it defaults to 0 if not provided. | |
| 0: non-silent mode 1: silent mode |
||
| /? | Produce a help message. |

In order to uniquely identify a backup task, Hasleo Backup Suite assigns a globally unique identifier (GUID) to a task when it is created. When executing a backup task through the command line interface program, you first need to find the GUID of the task through "BackupCmdUI.exe /a tasks", and then use the GUID to execute the backup task.
A: Currently, CLI only supports backup operations—you can list tasks and run specific backup tasks. Restore and clone via CLI are planned for future versions.
A: Run "BackupCmdUI.exe /a tasks" to list all tasks with their GUIDs. Each task has a unique identifier that identifies it in command-line operations.
A: Yes. Use /t parameter: /t 0 for full, /t 1 for incremental, /t 2 for differential backup. If not specified, it defaults to full backup.
A: Use /s 1 to suppress UI and run quietly in background. Use /s 0 (default) to show GUI during backup operation.
A: Yes. This is the main use case—embed CLI commands in .bat or .cmd scripts for automated backups. It works with Task Scheduler too.
A: Exit codes indicate success or failure. Non-zero means failure. Use error handling in scripts to detect failures and take appropriate action.
A: Yes. Run Command Prompt as administrator for system/directory backups. For file-only backups, regular user access may suffice.
A: Yes. Create a scheduled task that calls your batch script. The script runs automatically at specified times without user interaction.