dotfiles/.config/setup/31-initialize-backup-repository.sh

10 lines
193 B
Bash
Executable file

#! /usr/bin/bash
set -euo pipefail
IFS=$'\n\t'
run0 mkdir --parents "${BORG_REPO}"
run0 chown "${USER}":"${USER}" "${BORG_REPO}"
run0 chmod 700 "${BORG_REPO}"
borg init --encryption=repokey