Sun Management Center Change Manager 1.0.1 Administration Guide

- Previous: How to Rename a File or Folder (Command Line)
- Next: How to Move Files and Folders to Another Folder (Command Line)

## How to Export Files to Another System (Command Line)

Only files, not folders and Solaris boot images, can be exported.

1. Determine which files to export.

   For example, export the `/web-server/apache/host1.bmft` file to `host2:/home/suzi`.

2. Export the files:

   - Export a single file, `relfilepath`, from the repository as `filepath`.

          $ changemgr export [ -u username ] [ -p file ] relfilepath filepath

   - Export one or more files to the specified folder, `dirpath`, outside of the repository.

         $ changemgr export [ -u username ] [ -p file ] relfilepath ... dirpath

   dirpath

     Specifies an absolute or relative path to a directory. This directory is not within the Change Manager repository.

   filepath

     Specifies an absolute or relative path to a file. This file path is not within the Change Manager repository.

   relfilepath

     Specifies the path to a file, not including a folder, that is relative to the top of the Change Manager repository.

   For descriptions of the other options, see How to Create a Folder (Command Line).

### Example—Exporting a File to Another System

Suzi exports the `/web-server/apache/host1.bmft` file to her home directory, `/net/host2/home/suzi`.

    $ changemgr export /web-server/apache/host1.bmft \
    /net/host2/home/suzi/host1.bmft

### Example—Exporting Files to Another System

Suzi exports the `/web-server/apache/host1.bmft` file and the `/web-server/apache/host2.bmft` file to her home directory, `/net/host2/home/suzi`.

    $ changemgr export /web-server/apache/host1.bmft \
    /web-server/apache/host2.bmft /net/host2/home/suzi

- Previous: How to Rename a File or Folder (Command Line)
- Next: How to Move Files and Folders to Another Folder (Command Line)

- © 2010, Oracle Corporation and/or its affiliates