Playbook für die Nextcloud Notfalleinrichtung.
This commit is contained in:
11
roles/initnextcloud/files/scripts/installborg.sh
Executable file
11
roles/initnextcloud/files/scripts/installborg.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
sudo apt install python3 python3-dev python3-setuptools python3-wheel python3-pip libssl-dev openssl libacl1-dev libacl1 build-essential libfuse-dev fuse pkg-config ssh
|
||||
sudo pip3 install borgbackup[fuse]
|
||||
mkdir /tank/borg/${HOSTNAME}
|
||||
cd /tank/borg
|
||||
borg --verbose init --encryption=none $HOSTNAME
|
||||
borg --verbose --progress create --stats --comment "Initial backup" /tank/borg/$HOSTNAME/::firstbackup /home/$USER
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user