Archived
1
0
Fork 0

Fix borg setup missing dictionary

This commit is contained in:
Casper V. Kristensen 2022-05-10 01:25:49 +02:00
parent 088fd4100f
commit 4a3159f69f

View file

@ -4,7 +4,6 @@ set -e
# Packages
sudo apt update
sudo apt upgrade
sudo apt install -y borgbackup
# Backup script - not symlinked to avoid potential privilege escalation
@ -14,6 +13,7 @@ sudo chmod 744 /usr/local/sbin/backup.sh
# Passphrase
if [ ! -f /usr/local/etc/borg/passphrase.key ]; then
sudo mkdir --parents --mode=700 /usr/local/etc/borg/
echo '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@'
echo '@@ PLEASE BACKUP BORG PASSPHRASE: @@'
pwgen 32 1 | sudo tee /usr/local/etc/borg/passphrase.key
@ -44,5 +44,4 @@ ssh sigma.caspervk.net -p 222
# sudo adduser --disabled-password borg
# sudo su borg
# cd ~
# mkdir repos/
# chmod 700 repos/
# mkdir --mode=700 repos/