first commit

This commit is contained in:
2025-05-04 00:21:05 +02:00
commit 51a70d82ca
3 changed files with 112 additions and 0 deletions

16
restorefromhome.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
# Variablen
REPO="ssh://stefan@172.25.28.34:22/srv/usbplatte/nauheim1vps"
MOUNT_POINT="/home/stefan/restore"
# Sicherstellen, dass das Mount-Verzeichnis existiert
mkdir -p $MOUNT_POINT
# Repository mounten
borg mount $REPO $MOUNT_POINT
echo "Das Backup-Repository wurde erfolgreich in $MOUNT_POINT gemountet."
# Zum Unmounten später den folgenden Befehl nutzen:
# borg umount $MOUNT_POINT