20 lines
284 B
Bash
20 lines
284 B
Bash
|
#!/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"
|