mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-26 05:16:55 +08:00
CLI: Prettify backup message
This commit is contained in:
parent
9a9a81ac69
commit
318ffe77a9
1 changed files with 5 additions and 1 deletions
|
|
@ -1221,8 +1221,12 @@ class NPBackupRunner:
|
|||
"files_from_raw",
|
||||
):
|
||||
if source_type not in ["folder_list", None]:
|
||||
if not source_type or source_type == "folder_list":
|
||||
pretty_source_type = "files and folders"
|
||||
else:
|
||||
pretty_source_type = " ".join(source_type.split("_"))
|
||||
self.write_logs(
|
||||
f"Running backup of files in {paths} list to repo {self.repo_config.g('name')}",
|
||||
f"Running backup of {pretty_source_type}: {paths} to repo {self.repo_config.g('name')}",
|
||||
level="info",
|
||||
)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue