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
# Export repo path | |
export PATH=/mnt/data/src/aosp:$PATH | |
export REPO_MIRROR=isilon.cambridge.arm.com:/ifs/arm/scratch/aosp_mirror | |
export REPO_MOUNT=/mnt/data/src/aosp_mirror | |
# Mount AOSP Cambridge mirror (if required) | |
function repo_mount { | |
mount | grep "$REPO_MOUNT" &>/dev/null | |
[[ $? -eq 1 ]] || return |
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 = @( |