desktop-debian/_installs/restic.sh

20 lines
284 B
Bash
Executable File

#!/usr/bin/zsh
# install
sudo apt install -y \
restic
# make backup dir
restic init \
-p '/Data/.privat/restic/p.txt' \
-r '/Server/var/bak/.privat'
# backup
restic backup \
'/Data/.privat' \
-p '/Data/.privat/restic/p.txt' \
-r "/media/$USER/bak_daily/.privat"