Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fncopy(1M) — SunOS 5.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fnbind(1)

fnunbind(1)

fncreate(1M)

fncreate_fs(1M)

fncreate_printer(1M)

fndestroy(1M)

attributes(5)

fns(5)

fncopy(1M)

NAME

fncopy − copy FNS contexts, possibly from one naming service to another naming service

SYNOPSIS

fncopy [ −f filename ] [ −i old-naming-service ] [ −o new-naming-service ]

old-fns-context new-fns-context

DESCRIPTION

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. 

OPTIONS

−f filename Specifies a file name that contains a list of FNS contexts to be copied. 

−i old-naming-service Specifies the source naming service; currently only nis is supported. 

−o new-naming-service Specifies the target naming service; currently only nisplus is supported. 

OPERANDS

The following operands are supported:

old-fns-context The current FNS context. 

new-fns-context The new FNS context. 

EXAMPLES

For example, the command

eg% fncopy .../fed-naming.eng.sun.com/service/printer \

.../sun.com/orgunit/ssi.eng/service/printer

will copy 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. 

In the following example,

eg% fncopy −i nis −o nisplus −f /etc/ssi-users-list \

thisorgunit/user org/ssi.eng/user

will copy the NIS FNS users’ contexts specified in the file /etc/ssi-users-list to NIS+ FNS users’ context of the orgunit ssi.eng. 

EXIT STATUS

0 Operation was successful. 

1 Operation failed. 

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Availability SUNWfns

SEE ALSO

fnbind(1), fnunbind(1), fncreate(1M), fncreate_fs(1M), fncreate_printer(1M), fndestroy(1M), attributes(5), fns(5)

SunOS 5.6  —  Last change: 21 Jul 1996

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026