Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
System Administration Commandsfncopy(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

 

The following options are supported:

-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:

new-fns-context
The new FNS context.
old-fns-context
The current FNS context.

EXAMPLES

 Example 1. Copying the fncopy FNS Printer 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
Example 2. Copying the NIS FNS Users' Contexts
 

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

EXIT STATUS

 
0
Operation was successful.
1
Operation failed.

ATTRIBUTES

 

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

ATTRIBUTE TYPEATTRIBUTE VALUE
AvailabilitySUNWfns

SEE ALSO

 

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


SunOS 5.9Go To TopLast Changed 21 Jul 1996

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.