Skip to content

Instantly share code, notes, and snippets.

View trossr32's full-sized avatar
🤿
I'd rather be diving

Rob Green trossr32

🤿
I'd rather be diving
View GitHub Profile
@trossr32
trossr32 / backup.ps1
Last active April 2, 2024 15:27 — forked from Fireforge/backup.ps1
Powershell backup script using Robocopy
#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.

Keybase proof

I hereby claim:

  • I am trossr32 on github.
  • I am robgreen1979 (https://keybase.io/robgreen1979) on keybase.
  • I have a public key ASCDV_adB5jRv1LHwMVZ3V-9yiQWRM-BnaMMxC0D5bPEIwo

To claim this, I am signing this object: