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
# Windows PowerShell Script to use restic to backup files using the Volume Shadow Copy Service, allowing | |
# that are in use to be backed up. The script must be run with elevated privileges. | |
# The Volume Shadow Copy Service must be enabled for the disk volume that contains the files to be backed up. | |
# | |
# Parameters | |
$resticExe = 'C:\Users\Username\go\bin\restic.exe' | |
$resticRepository = '\\SYNOLOGY212J\backups\restic-workstation' | |
$rootVolume = "C:\" | |
# List of folders to backup, separated by commas | |
$foldersToBackup = @( |
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
$packageUrl = "https://repo.continuum.io/archive/Anaconda3-5.0.0-Windows-x86_64.exe" | |
$fileName = Split-Path $packageUrl -Leaf | |
$destinationDir = "C:\Users\stanley\Downloads" | |
$destinationPath = $destinationDir + "\" + $fileName | |
If (!(Test-Path -Path $destinationPath -PathType Leaf)) { | |
Write-Host "Downloading $fileName" | |
$webClient = New-Object System.Net.WebClient | |
$webClient.DownloadFile($packageUrl, $destinationPath) | |
} |
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
# Description: Initial Boxstarter Script for Base Configuration | |
# Author: R. Stanley Hum <[email protected]> | |
# Last Updated: 2017-10-01 | |
# | |
# Forked and modified from Jess Frazelle's boxstarter.ps1 gist ( | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned |