mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-07 21:44:47 +08:00
Fix #82, windows task creation type
This commit is contained in:
parent
b5caaae74d
commit
272b3a8b52
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ def create_scheduled_task_windows(
|
|||
<Enabled>true</Enabled>
|
||||
</TimeTrigger>"""
|
||||
elif hour is not None and minute is not None:
|
||||
task_args = f'{task_args}-c "{config_file}" --backup --force --run-as-cli'
|
||||
task_args = f'{task_args}-c "{config_file}" --{type} --force --run-as-cli'
|
||||
start_date = (
|
||||
datetime.datetime.now()
|
||||
.replace(microsecond=0, hour=hour, minute=minute, second=0)
|
||||
|
|
Loading…
Add table
Reference in a new issue