h
This commit is contained in:
+2
-2
@@ -30,7 +30,7 @@ for HOST in "${HOSTS[@]}"; do
|
||||
|
||||
# Pull mode: mount client's /BACKUP locally via SSHFS
|
||||
if ! sshfs "${HOST}:/BACKUP" "$MOUNT_DIR" \
|
||||
-o BatchMode=yes,reconnect,ServerAliveInterval=15,ServerAliveCountMax=3; then
|
||||
-o BatchMode=yes,reconnect,follow_symlinks,ServerAliveInterval=15,ServerAliveCountMax=3; then
|
||||
echo "WARNING: Failed to mount $HOST:/BACKUP via SSHFS"
|
||||
FAILED_HOSTS+=("$HOST")
|
||||
rmdir "$MOUNT_DIR"
|
||||
@@ -42,7 +42,7 @@ for HOST in "${HOSTS[@]}"; do
|
||||
if ! borg create \
|
||||
"$REPO::$ARCHIVE" \
|
||||
"$MOUNT_DIR" \
|
||||
--pattern "+ sh:*/current*" \
|
||||
--pattern "+ sh:**/current*" \
|
||||
--pattern "- *" \
|
||||
--files-cache ctime,size \
|
||||
--stats \
|
||||
|
||||
Reference in New Issue
Block a user