What are some best practices in mounting NAS shares that you all follow?

Currently I am mounting using fstab to my user’s home directory with full rwx permissions, but that feels wrong.

I’ve read to use the mnt directory or the media directory but opinions differ.

My main concern is I want to protect against inadvertently deleting the contents of the NAS with an errant rm command. And yes I have backups of my NAS too.

Edit: this is a home NAS with 1 user on this Linux PC (the other clients being windows and Mac systems)

Would love to hear everyone’s philosophy! Thanks!

  • teawrecks@sopuli.xyz
    link
    fedilink
    arrow-up
    16
    ·
    1 year ago

    The NAS should be regularly backed up/snapshotted, so that even if you/a bad process deletes everything, you can restore it all quickly and easily.

    • LastYearsPumpkin@feddit.ch
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      1
      ·
      1 year ago

      A backup is an emergency protection, not a primary plan. This attitude is dangerously close to making the backup a critical part of their uptime.

      • teawrecks@sopuli.xyz
        link
        fedilink
        arrow-up
        6
        ·
        1 year ago

        Having something rm your entire NAS is an emergency, not something that should be happening regularly. If it is, you’ve got bigger problems.