I've got an NFS mount pointing at a different server:

mount -t nfs X.X.X.X:/asteriskstorage /mnt/asteriskstorage

I can access /mnt/asteriskstorage and all seems fine.

What I want to do is redirect the path /var/spool/asterisk/monitor to /mnt/asteriskstorage.

How do I do that?



How about a symlink, which of course will only work when the mount is active on the particular machine:

ln -s /mnt/asteriskstorage /var/spool/asterisk/monitor
  • Ok thanks - do I need to remove the local /var/spool/asterisk/monitor path first?
    – Ben
    Feb 4 '16 at 16:12
  • yep. rename it, for testing purposes. if something is not as you want, you may change it back..
    – gerhard d.
    Feb 4 '16 at 16:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.