
Try running `cp -al` to preserve hardlinks on both macOS and Linux. If that fails, fall back on `cp -a` which can preserve hardlinks on Linux (but not macOS) assuming target filesystem supports them.
Try running `cp -al` to preserve hardlinks on both macOS and Linux. If that fails, fall back on `cp -a` which can preserve hardlinks on Linux (but not macOS) assuming target filesystem supports them.