Fix borg setup missing dictionary
This commit is contained in:
parent
088fd4100f
commit
4a3159f69f
1 changed files with 2 additions and 3 deletions
|
@ -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/
|
||||
|
|
Reference in a new issue