Skip to content

Instantly share code, notes, and snippets.

@asiellb
Forked from betweenbrain/mac-linux-nfs.md
Created November 16, 2021 13:51
Show Gist options
  • Save asiellb/9b3736e68f0b9a30e2d3cf4c8b363c91 to your computer and use it in GitHub Desktop.
Save asiellb/9b3736e68f0b9a30e2d3cf4c8b363c91 to your computer and use it in GitHub Desktop.
Mac backup to Linux NFS via Time Machine

Host

$ sudo apt update
$ sudo apt install nfs-kernel-server
$ sudo mkdir /mnt/nfs -p
$ sudo chown nobody:nogroup /mnt/nfs
$ sudo chmod 777 /mnt/nfs
$ sudo nano /etc/exports
  • add something like /mnt/nfs 192.168.1.101(rw,sync,no_root_check,no_subtree_check)
$ sudo systemctl restart nfs-kernel-server

Client

$ sudo mkdir /private/nfs
$ sudo mount -t nfs -o resvport,rw 192.168.1.106:/mnt/nfs /private/nfs
  • Create disk image using Disk Utilities, mount it.
$ sudo tmutil setdestination /Volumes/MacBackup

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment