This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -RunAsAdministrator | |
function Robocopy-Backup { | |
<# | |
.SYNOPSIS | |
Backup a directory or multiple directories using robocopy | |
.DESCRIPTION | |
This script will backup a directory or multiple directories using robocopy. It will create log files per job in the specified log directory. | |
.PARAMETER SourceDirectory | |
The source directory to backup, e.g. 'G:\'. Can not be used with SourceDirectories or SourceDestinationPairs parameters. |