IT/Hardware/Routers/USB Hard Drive/nfs exports

From msgwiki
Jump to navigation Jump to search

Samba

  • This seems to be the industry standard
  • We would have liked this as it makes setting things up in Windows easier
    • But then again we don't use windows.
  • BUT we have never gotten it to work
    • by working we mean automounting in fstab

NFS

  • This is how we setup the servers at the MSGs to share files across the network
  • It is very easy to setup.
    • The following documentation is from our beloved Asus AC68(may she live forever)
  • Plug in the USB drive
    • We recommend ext3, ext4 or NTFS
  • Turn the service on
  • Put in the information as shown to share to one machine.
    • Usually the one that will be making the backups
Step 1
Step 2
  • In fstab add the following line
    • 192.168.2.1:/mnt/travelbackup /mnt/samba nfs auto 0 0
    • Don't forget that fstab need an empty line at the bottom of the file.
    • Hit return a few times and save the file.
  • run the command to mount all the shares

sudo mount -a

  • Now the share will appear in Dolphin
  • You can use rsync to backup to it

Problems

  • It is very unstable for hot plug and unplug
  • If you try to mount and it is not there it will hang the system.
  • Best implemented as an always on system that can be yanked in an emergency.
  • Better at that point to just plug into the server as needed.