jgoerzen / simplesnap

A simple and powerful way to send ZFS snapshots across a network
GNU General Public License v3.0
49 stars 15 forks source link

simplesnapwrap not working on MacOS #22

Open tomhoover opened 5 years ago

tomhoover commented 5 years ago
  1. When installing OpenZFS and the gnu utilities (gdate, ghead, ggrep & gsed) via Homebrew, all executables are placed in the /usr/local/bin directory. As the default PATH used when executing simplesnapwrap doesn't include the /usr/local/bin directory, none of the executables are found by the script.
  2. The script doesn't use ghead (if available). The default head command in MacOS is not gnu compatible; therefore, the command head -n -1 returns an error.

Pull request is nearly complete, and should be uploaded tomorrow.