The ftpsync script from the Debian archive mirror page is used to mirror the packages from the ftp.at.debian.org and security.debian.org archives.
The script shows some errors on OmniOS due to differences in options to the
My private Debian package mirror was a Debian 8 virtual machine with the storage provided by an OmniOS fileserver and exported as a nfs share.
The goal is to move the whole mirror into a zone on the fileserver. The debian ftpsync mirror script is a bash script and should also run on OmniOS.