Initialisierung wird optional durchgeführt
This commit is contained in:
@@ -17,3 +17,12 @@ echo "export RESTIC_REPOSITORY=\"s3:https://storage.datenwarehouse.synology.me/$
|
|||||||
echo "export RESTIC_PASSWORD=\"$resticpassword\"" >> .restic-env
|
echo "export RESTIC_PASSWORD=\"$resticpassword\"" >> .restic-env
|
||||||
|
|
||||||
echo "Werte wurden erfolgreich in die Datei .restic-env geschrieben."
|
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"
|
||||||
Reference in New Issue
Block a user