#!/bin/bash if [ -z "$RESTIC_REPOSITORY" ]; then echo "Please specify path for the restic repository" exit 0 fi if [ -z "$RESTIC_PASSWORD" ]; then echo "Please input password for the archive" exit 0 fi restic backup \ --exclude="/proc" \ --exclude="/tmp" \ --exclude="/mnt" \ --exclude="/dev" \ --exclude="/sys" \ --exclude="/run" \ --exclude="/media" \ --exclude="/var/log" \ --exclude="/var/cache" \ --exclude="lost+found" \ --exclude="*.sock" \ --one-file-system \ /