fncopy copies recursively the FNS context, old-fns-context, and attributes to a new FNS context, new-fns-context. If -i and -o options are specified with the respective naming service, the old-fns-context with be resolved using old-naming-service as the underlying naming service, and new-fns-context will be created using new-naming-service as the underlying naming service. In the absence of -i and -o options, the default naming service will be used (see fnselect(1M)).
When the -f option is used, filename names a file containing a list of contexts in the old-fns-context that should be copied to the new-fns-context.
If the FNS context new-fns-context already exists in the target naming service, new-naming-service, this command will copy only the contexts and bindings that do not exist in the target naming service. This command will not over-write any of the existing FNS contexts in the target naming service.
This command follows links and copies FNS contexts and binding to the new-fns-context namespace.
The following options are supported:
Specifies a file name that contains a list of FNS contexts to be copied.
Specifies the source naming service; currently only nis is supported.
Specifies the target naming service; currently only nisplus is supported.
The following operands are supported:
The new FNS context.
The current FNS context.
The following command copies the FNS printer context .../fed-naming.eng.sun.com/service/printer and its subcontexts and bindings to the FNS printer context .../sun.com/orgunit/ssi.eng/service/printer.
% fncopy .../fed-naming.eng.sun.com/service/printer \ .../sun.com/orgunit/ssi.eng/service/printer
The following command copies the NIS FNS users' contexts specified in the file /etc/ssi-users-list to NIS+ FNS users' context of the orgunit ssi.eng:
% fncopy -i nis -o nisplus -f /etc/ssi-users-list \ thisorgunit/user org/ssi.eng/user
See attributes(5) for descriptions of the following attributes:
|ATTRIBUTE TYPE||ATTRIBUTE VALUE|