From c43d1cd14212969a918d58e7b1fde21afbb91ea0 Mon Sep 17 00:00:00 2001 From: John Gaunt Date: Mon, 18 Nov 2024 11:53:41 -0500 Subject: [PATCH] Updated mounts to be read only --- backupBSD.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backupBSD.sh b/backupBSD.sh index 31c7935..64760bc 100644 --- a/backupBSD.sh +++ b/backupBSD.sh @@ -20,7 +20,7 @@ GauntRouterSSHFSMountDirectory="${SSHFSMountDirectory}/${DNSName}" /usr/bin/mkdir ${GauntRouterSSHFSMountDirectory} && \ /usr/bin/echo ${GauntRouter01EncryptedRootPassword} | \ /usr/bin/clevis decrypt | \ - /usr/bin/sshfs -o password_stdin root@${DNSName}:/ ${GauntRouterSSHFSMountDirectory} && \ + /usr/bin/sshfs -o password_stdin -o ro root@${DNSName}:/ ${GauntRouterSSHFSMountDirectory} && \ /usr/bin/proxmox-backup-client backup conf.pxar:${GauntRouterSSHFSMountDirectory}/conf bpsensei.pxar:${GauntRouterSSHFSMountDirectory}/usr/local/bpsensei --backup-id GauntRouter01 --ns Hosts --repository GauntPBS01-Helper@pbs@gauntpbs01.home.johnhgaunt.com:8007:GauntPBS01-Local # umount and remove directory /usr/bin/umount --force --lazy --quiet ${GauntRouterSSHFSMountDirectory} && \ @@ -32,7 +32,7 @@ TheGauntsRouterSSHFSMountDirectory="${SSHFSMountDirectory}/${DNSName}" /usr/bin/mkdir ${TheGauntsRouterSSHFSMountDirectory} && \ /usr/bin/echo ${TheGauntsRouterEncryptedRootPassword} | \ /usr/bin/clevis decrypt | \ - /usr/bin/sshfs -o password_stdin root@${DNSName}:/ ${TheGauntsRouterSSHFSMountDirectory} && \ + /usr/bin/sshfs -o password_stdin -o ro root@${DNSName}:/ ${TheGauntsRouterSSHFSMountDirectory} && \ /usr/bin/proxmox-backup-client backup conf.pxar:${TheGauntsRouterSSHFSMountDirectory}/conf bpsensei.pxar:${TheGauntsRouterSSHFSMountDirectory}/usr/local/bpsensei --backup-id TheGauntsRouter --ns Hosts --repository GauntPBS01-Helper@pbs@gauntpbs01.home.johnhgaunt.com:8007:GauntPBS01-Local # umount and remove directory @@ -45,7 +45,7 @@ GauntNASSSHFSMountDirectory="${SSHFSMountDirectory}/${DNSName}" /usr/bin/mkdir ${GauntNASSSHFSMountDirectory} && \ /usr/bin/echo ${GauntNASEncryptedRootPassword} | \ /usr/bin/clevis decrypt | \ - /usr/bin/sshfs -o password_stdin root@${DNSName}:/ ${GauntNASSSHFSMountDirectory} && \ + /usr/bin/sshfs -o password_stdin -o ro root@${DNSName}:/ ${GauntNASSSHFSMountDirectory} && \ /usr/bin/proxmox-backup-client backup data.pxar:${GauntNASSSHFSMountDirectory}/data etc.pxar:${GauntNASSSHFSMountDirectory}/etc root.pxar:${GauntNASSSHFSMountDirectory}/root --backup-id GauntNAS --ns Hosts --repository GauntPBS01-Helper@pbs@gauntpbs01.home.johnhgaunt.com:8007:GauntPBS01-Local # umount and remove directory