Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    copy

    Syntax

    copy [ sourcePath ]sourceFilename [ destinationPath ]destinationFilename [ force ]

    Release Information

    Command introduced before JunosE Release 7.1.0.
    hostName and deviceName variables added in JunosE Release 7.2.0.

    Description

    Copies a local or network file. There is no no version.

    Note:

    • You cannot change the extension of a file, for example, from .mac to .scr. You can copy software release (.rel) files only to the router (download); you cannot copy them from the router (upload). See Copying and Redirecting Files in the JunosE System Basics Configuration Guide, for detailed information on file type usage with the copy command.
    • You cannot copy script (.scr) or macro (.mac) files while in Boot mode. You can copy only .cnf, .hty, and .rel files. If you issue the dir command from Boot mode, existing .scr and .mac files are not displayed.

    Options

    • sourcePath—Path to the source in the format:
      hostName: | deviceName: | /incoming/subdirectory/ | /outgoing/subdirectory/
    • hostName:—Name of the network host
    • deviceName:—Name of the device specifying a flash card slot
      • disk0—Specifies flash card slot 0 on the primary SRP module; if no device is specified for the primary SRP module, then disk0 is used
      • disk1—Specifies flash card slot 1 on the primary SRP module; source and destination file types must be .dmp; supported only on the E120 and E320 routers
      • standby—Specifies flash card slot 0 on the standby SRP module for backward compatibility
      • standby-disk0—Specifies flash card slot 0 on the standby SRP module
      • standby-disk1—Specifies flash card slot 1 on the standby SRP module; source and destination file types must be .dmp; supported only on the E120 and E320 routers
      • incoming—Specifies the router's incoming FTP directory
      • subdirectory—Name of a subdirectory on the router's FTP server. If the subdirectory does not exist, the router creates it.
      • outgoing—Specifies the router's outgoing FTP directory
    • sourceFilename—Name of the source file
    • destinationPath—Path to the destination in the format:
      networkPath | /incoming/subdirectory | /outgoing/subdirectory
      • networkPath—Path to the network host
      • incoming—Specifies the incoming router's FTP directory
      • subdirectory—Name of a subdirectory on the ERX router's FTP server. If the subdirectory does not exist, the router creates it.
      • outgoing—Specifies the router's outgoing FTP directory
    • destinationFilename—Name of the destination file
    • force—Forces a copy, even when the destination file already exists; if a file is marked by the file system as in use because it is required for the current operation or configuration, the force keyword cannot force a copy of that file

    Mode

    Privileged Exec

    Published: 2014-08-20