Initialisierung wird optional durchgeführt

This commit is contained in:
2023-11-18 19:48:46 +00:00
parent a109aff728
commit a42ed25512

View File

@@ -17,3 +17,12 @@ echo "export RESTIC_REPOSITORY=\"s3:https://storage.datenwarehouse.synology.me/$
echo "export RESTIC_PASSWORD=\"$resticpassword\"" >> .restic-env
echo "Werte wurden erfolgreich in die Datei .restic-env geschrieben."
read -p "Soll das der Bucket zum Backup initialisiert werden J oder N:" A
if [ "$A" == "J" -o "$A" == "j" ];then
echo "wird initialisiert..."
source .restic-env
restic init
else
echo "wird nicht initialisiert"
fi
echo "fertig"