#!/bin/bash scriptPath="$(dirname "$(readlink -f "$0")")" cp "$scriptPath/templates/profiles.toml" "$scriptPath/profiles.toml" cp "$scriptPath/templates/excludes" "$scriptPath/excludes" resticprofile generate --random-key > "$scriptPath/key"