Hi,

On Sat, 03 Jan 2015 09:23:29 -0500 Harry Putnam wrote:
> I'm sshfs mounting an solaris zfs file system in the interactive
> fashion.
> 
> sshfs $USR@HOST:/file/system MOUNTPOINT
>  passwd?
>  enter passwd <RETURN>
>  
> Once mounted I run an rsnapshot backup onto the mounted FS.
> 
> Any ideas on how to go about doing this mount automatically (scripted)
> will be greatly appreciated.

1) Set up your ssh to use keys. Key itself should not be protected
by password (or manual intervention will be needed on each mount).

2) Add sshfs command to your .bash_profile (or whatever login shell
you're using) with check that filesystem is not mounted already,
something like:
  grep -q $MOUNTPOINT || sshfs $USR@HOST:/file/system MOUNTPOINT

Alternatively you may add this to your DE/WM autostart scripts, if
you are using GUI logins only.

Best regards,
Andrew Savchenko

Attachment: pgpJvFFahiIWL.pgp
Description: PGP signature

Reply via email to