summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b682465)
We use approved verbs now
Rotate-Backup -> Invoke-BackupRotation
Rotate-Log -> Invoke-LogRotation
-function Rotate-Backup {\r
+function Invoke-BackupRotation {\r
if($keepMonths -lt 0) {\r
return\r
}\r
if($keepMonths -lt 0) {\r
return\r
}\r
+function Invoke-LogRotation {\r
if($keepLogs -le 0) {\r
return\r
}\r
if($keepLogs -le 0) {\r
return\r
}\r
\r
if($errorMessages.Count -eq 0) {\r
if($rotateBeforeBackup) {\r
\r
if($errorMessages.Count -eq 0) {\r
if($rotateBeforeBackup) {\r
+ Invoke-BackupRotation\r
}\r
\r
$dsLogPath = if($dsLogFileToBackup) { "$backupTargetFull\$dsLogFile" } else { $dsLogFile }\r
}\r
\r
$dsLogPath = if($dsLogFileToBackup) { "$backupTargetFull\$dsLogFile" } else { $dsLogFile }\r
}\r
\r
if($rotateBeforeBackup -eq $False -and $success -eq $True) {\r
}\r
\r
if($rotateBeforeBackup -eq $False -and $success -eq $True) {\r
+ Invoke-BackupRotation\r
}\r
\r
# Rotate the log files\r
}\r
\r
# Rotate the log files\r
+ Invoke-LogRotation\r
+\r
}\r
\r
# If there was any error message recorded, send a mail if configured\r
}\r
\r
# If there was any error message recorded, send a mail if configured\r