Skip to content

Instantly share code, notes, and snippets.

@kotauskas
kotauskas / Backup-Location.ps1
Created December 10, 2021 13:14
PowerShell backup tool
param(
[string] $Source = $null,
[string] $Destination = $null,
[string] $7ZipPath = "7z",
[string] $CompressionMethod = "-t7z -mmt=on",
[string] $AdditionalFlags = "",
[string] $EventLogName = "Backup",
[string] $EventLogSource = "Backup-Location",
[switch] $OnlyRegisterLog