Updated mounts to be read only
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user