first commit
This commit is contained in:
16
restorefromhome.sh
Executable file
16
restorefromhome.sh
Executable 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
|
||||
Reference in New Issue
Block a user