Sun Java System Portal Server 7.1 Command Line Reference

psadmin export

Description

Exports the portal desktop, including the provider and channels, data.

Syntax

Long Format

psadmin export --adminuser uid --passwordfile password-filename [--files-only] --portal portal-name [--dp-only] --type type [--dn dn] [--global] [--exportfile export_file_list] [--debug] par-filename

Short Format

psadmin export -u uid -f password-filename [--files-only] -p portal-name [--dp-only] -t type [-d dn] [-g] [-x export_file_list] par-filename

Options

The following options are required:

[--adminuser | -u] uid

Specifies the administrator's distinguished name (dn) or user ID (uid). Enclose value in double quotation marks if it includes spaces.

[--passwordfile | -f] password-filename

Specifies administrator's password in the password file.

[--portal | -p] portal-name

Specifies the portal name.

[--type | -t] type

Specifies the type of data to be exported. Supports two types: desktop and provider. Note that the provider type must be used for channel as well as provider data.

The following options are optional:

--files-only

Specifies to back up the desktop file system data only. Default is off.

--debug

This flag is used for debugging purpose only, set this flag to true to see exceptions that caused the error. Default is off.

--dp-only

Specifies to export the display profile data only. Default is off.

--export | -x export_file_list

Specifies a comma separated list of export files. Applicable only if type is provider which is used for exporting provider and/or channels data as specified in the export file. Each export file is a text file (.txt), corresponds to an entry (provider, channel, or provider/channel combination) in the .par file, and specifies the data to be inserted into the specified .par file. See Chapter 23, PAR Export File Format for more information.

--dn | -d dn

Specifies the distinguished node from where data is to be exported. Applicable only if type is provider. This option is mutually exclusive to --global.

--global | -g

Specifies the global level node to access the display profile document. Applicable only if type is provider. This option is mutually exclusive to --dn.

Operands

The following operand is supported:

par-filename

Specifies the exported archive file in the local machine. If full path is given, the file will be created in that path; otherwise, the file will be created in the current directory. The archive file must use extension .par.

Example


Example 5–7 psadmin export

psadmin export -u amadmin --passwordfile /tmp/passwd -t desktop desktop.par

psadmin export -u amadmin --passwordfile /tmp/passwd -t provider -d "ou=DeveloperSample,dc=someplace,dc=siroe,dc=com" -x expfile1.txt,expfile2.txt desktop.par


psadmin export -u admin-user -f password -p portal1 -t desktop --files-only files.par

In the above example, the command exports the file system data.

psadmin export -u admin-user -f password -p portal1 -t desktop --dp-only dp.par

In the above example, the command exports the display profile from all organizations.

psadmin export -u admin-user -f password -p portal1 -t desktop all.par

In the above example, the command exports both the file system data and the display profiles from all organizations.