#!/usr/bin/env zsh # author: Daniel Sommer # license: MIT # override default repository export RESTIC_REPOSITORY="/mnt/restic" # define pre and post backup actions export RESTIC_BACKUP_PRE="printf '\n> mounting remote storage...\n' && mount -t nfs -o vers=4,soft,noatime,nolock,retrans=1,timeo=10 192.168.100.1:/mnt/storage /mnt/n100" export RESTIC_BACKUP_POST="printf '\n> unmounting remote storage...\n' && umount /mnt/n100" # define pre and post prune actions export RESTIC_PRUNE_PRE="" export RESTIC_PRUNE_POST="printf '\n> fixing ownership of repository...\n' && chown -R restic:restic $RESTIC_REPOSITORY" # define title and icon for the notification export RESTIC_NTFY_TITLE="storage" export RESTIC_NTFY_ICON="yellow_circle" # define backup directories export RESTIC_DIRECTORIES=( "/mnt/n100/audiobooks" "/mnt/n100/comics" "/mnt/n100/documents" "/mnt/n100/ebooks" "/mnt/n100/images" "/mnt/n100/music" "/mnt/n100/software" "/mnt/n100/syncthing" "/mnt/n100/videos" )