Skip to main content

CLI

This page provides a reference for the backupman command-line interface.

Main Command

The main backupman command is used to manage backups.

Usage:

backupman [command]

Global Flags:

FlagDescriptionDefault
-c, --configPath to the config file../config.yml
-h, --helpHelp for backupman.

Commands

auth-google

Authenticate with Google Drive using OAuth2

Usage:

backupman auth-google

Arguments:

ArgumentDescriptionDefault
client-secret-filePath to the client secret file.google-client-secret.json
token-filePath that the token will be saved to.google-token.json
open-urlOpen the authorization URL in the default web browser.true

completion

Generate the autocompletion script for the specified shell.

Usage:

backupman completion [shell]

health

Perform a health check on the backup system.

Usage:

backupman health

retry

Retry a failed backup.

Usage:

backupman retry [id]

Arguments:

ArgumentDescription
idThe ID of the failed backup to retry.

run

Run the backup.

Usage:

backupman run

serve

Serve the backup manager.

Usage:

backupman serve

Flags:

FlagDescriptionDefault
-p, --portPort to run the server on.8080

version

Display the version information of backupman.

Usage:

backupman version