Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAndCreatePidFile ¶
func ExtractBackupNameFromCommand ¶ added in v2.7.0
ExtractBackupNameFromCommand parses a backup_actions command string (e.g. `upload --resumable=1 my_backup`, `delete local my_backup`, `restore_remote --rm my_backup`) and returns the backup name (last positional token), or empty string if the command does not target a single backup (watch, clean, list, kill, ...).
func RemovePidFile ¶
func RemovePidFile(backupName string)
func RemovePidFileForCommand ¶ added in v2.7.0
func RemovePidFileForCommand(command string)
RemovePidFileForCommand extracts the backup name from a backup_actions command string and removes the corresponding pid file, if any. Safe to call for commands that don't have a pid file (no-op).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.