Skip to content

Instantly share code, notes, and snippets.

View lboulard's full-sized avatar

Laurent Boulard lboulard

  • Versailles, France
View GitHub Profile
@lboulard
lboulard / restic-windows-vss.ps1
Created January 13, 2023 21:55 — forked from rstanleyhum/restic-windows-vss.ps1
Restic Backup Windows Volume Shadow Copy Service script taken from https://github.com/restic/restic/issues/340
# 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 = @(
@lboulard
lboulard / init_env
Created July 11, 2019 12:19 — forked from derkling/init_env
A set of repo related functions to speedup AOSP related development
# 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