Skip to main content

mfds -x returns "Unrecognized export option"

  • April 27, 2016
  • 0 replies
  • 0 views

The Issue:

I want to manually export the repository from the command line on a Unix system using mfds.

When executing the following:

/opt/PRODET>mfds -X 1 /opt/PRODET/rdmtest/repos * D SYSAD SYSAD
 

I get the following:

Processing -X option...
Copyright (c) 1991 - 2012 Micro Focus. All rights reserved.
Micro Focus Directory Server daemon: Version 1.15.08
Unrecognized export option detected in "Bkup-ud".
Syntax: mfds -x [repository type] [repository address] [server name] <opts>
          <user id> <password>

        where [repository type]
           1 = file:///
           5 = XML
        where [server name]
           * = export all servers
        where <opts>
           D = (default) do not delete or overwrite any existing repository
               contents at specified location
           O = delete and overwrite any existing repository contents at
               specified location
           S = export server and security manager configuration
        where <user id> and <password> are the MFDS credentials required if
           administration access is restricted

 e.g. "mfds -X 1 c:\\myrepository *"
      "mfds -x 1 c:\\myrepository * S"
      "mfds -X 1 c:\\myrepository * O"
      "mfds /x 1 c:\\myrepository * SO"
      "mfds /X 5 c:\\myrepository ESDEMO"
      "mfds /X 1 c:\\myrepository ESDEMO D myid mypwd"


Why am I getting this result?

The Resolution:

The asterisk in the command string

    mfds -X 1 /opt/PRODET/rdmtest/repos * D SYSAD SYSAD

must be put into quotes. As is, it is picking up filenames in the present working
directory and using them as parameters (the "Bkup-ud" is part of a filename).

Using this:

    mfds -X 1 /opt/PRODET/rdmtest/repos "*" D SYSAD SYSAD

will get past the issue and allow the repository to be manually exported.


#MFDS
#EnterpriseDeveloper

0 replies

Be the first to reply!