Skip to content

Instantly share code, notes, and snippets.

@huyz
huyz / buildresticexcludes.sh
Last active March 6, 2022 03:43 — forked from Vartkat/buildresticexcludes.sh
Bash script to build a restic exclude list that mimics Apple TimeMachine exclude list
#!/bin/bash
# This script intend to mimic TimeMachine exclude list.
# As the exclude list can evolve between backups it has to be rebuilt before every backup
# Apple uses 5 types of excludes:
# - 4 `/System/Library/CoreServices/backupd.bundle/Contents/Resources/StdExclusions.plist`
# - and files from applications where metadata says to not backup, these can be found usinr
# `sudo mdfind "com_apple_backup_excludeItem = 'com.apple.backupd'"`
PLISTBUDDY=/usr/libexec/PlistBuddy
#!/usr/bin/env ruby -E utf-8
# merge_asana_into_omnifocus.rb
# Hilton Lipschitz
# http://www.hiltmon.com
# Use and modify freely, attribution appreciated
# Script to import Asana projects and their tasks into
# OmniFocus and keep them up to date from Asana.