Fix borg setup missing dictionary
This commit is contained in:
parent
088fd4100f
commit
4a3159f69f
|
@ -4,7 +4,6 @@ set -e
|
||||||
|
|
||||||
# Packages
|
# Packages
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt upgrade
|
|
||||||
sudo apt install -y borgbackup
|
sudo apt install -y borgbackup
|
||||||
|
|
||||||
# Backup script - not symlinked to avoid potential privilege escalation
|
# Backup script - not symlinked to avoid potential privilege escalation
|
||||||
|
@ -14,6 +13,7 @@ sudo chmod 744 /usr/local/sbin/backup.sh
|
||||||
|
|
||||||
# Passphrase
|
# Passphrase
|
||||||
if [ ! -f /usr/local/etc/borg/passphrase.key ]; then
|
if [ ! -f /usr/local/etc/borg/passphrase.key ]; then
|
||||||
|
sudo mkdir --parents --mode=700 /usr/local/etc/borg/
|
||||||
echo '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@'
|
echo '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@'
|
||||||
echo '@@ PLEASE BACKUP BORG PASSPHRASE: @@'
|
echo '@@ PLEASE BACKUP BORG PASSPHRASE: @@'
|
||||||
pwgen 32 1 | sudo tee /usr/local/etc/borg/passphrase.key
|
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 adduser --disabled-password borg
|
||||||
# sudo su borg
|
# sudo su borg
|
||||||
# cd ~
|
# cd ~
|
||||||
# mkdir repos/
|
# mkdir --mode=700 repos/
|
||||||
# chmod 700 repos/
|
|
||||||
|
|
Reference in a new issue