From 3ed3847dd2b3c5a3c925b784d64273dff7e7b5ff Mon Sep 17 00:00:00 2001 From: Ben Miller Date: Thu, 19 Jun 2025 00:48:58 -0600 Subject: [PATCH] foam_sync.ps1 (LIFEBALANCE) 2025-06-19T00:48:58Z --- foam_sync.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/foam_sync.ps1 b/foam_sync.ps1 index 7993f78..e400cad 100644 --- a/foam_sync.ps1 +++ b/foam_sync.ps1 @@ -49,8 +49,8 @@ $taskDescription = "Periodically synchronizes the Git repository at $scriptDir u # Run as the user who executes this script. $taskPrincipal = New-ScheduledTaskPrincipal -UserId $env:USERNAME -LogonType Interactive -# Define a very long, but more conservative, duration (e.g., 10 years) -$practicallyIndefiniteDuration = New-TimeSpan -Days (365 * 10 + 2) # Approx 10 years, accounting for a couple of leap years +# Define a very long duration (e.g., 40 years) +$practicallyIndefiniteDuration = New-TimeSpan -Days (365 * 40 + 10) # Approx 40 years, accounting for leap years # Trigger configuration $trigger = New-ScheduledTaskTrigger -Once -At (Get-Date) -RepetitionInterval (New-TimeSpan -Minutes $frequencyMinutes) -RepetitionDuration $practicallyIndefiniteDuration