repository

To enter the repository submode for configuration of backups, use the repository command in Configuration mode.

repository repository-name

Syntax Description

repository

The command to configure the repository.

repository-name

Name of repository. Supports up to 80 alphanumeric characters.

Note After you enter the name of the repository in the repository command, you enter the config-Repository configuration submode (see the Syntax Description).

do

EXEC command. Allows you to perform any of the EXEC commands in this mode (see the “do”).

end

Exits the config-Repository submode and returns you to the EXEC mode.

exit

Exits this mode.

no

Negates the command in this mode.

Two keywords are available:

 • url—Repository URL.

 • user—Repository username and password for access.

url

URL of the repository. Supports up to 80 alphanumeric characters (see Table 4-17).

user

Configure the username and password for access. Supports up to 30 alphanumeric characters.

Table 4-17 URL Keywords

Keyword

Source of Destination

word

Enter the repository URL, including server and path information. Supports up to 80 alphanumeric characters.

cdrom:

Local CD-ROM drive (read only).

disk:

Local storage.

You can run the show repository repository_name to view all the files in the local repository.

Note All local repositories are created on the /localdisk partition. When you specify disk:// in the repository URL, the system creates directories in a path that is relative to /localdisk. For example, if you entered disk://backup, the directory is created at /localdisk/backup.

ftp:

Source or destination URL for an FTP network server. Use url ftp://server/path1.

nfs:

Source or destination URL for an NFS network server. Use url nfs://server:path1.

sftp:

Source or destination URL for an SFTP network server. Use url sftp://server/path1.

tftp:

Source or destination URL for a TFTP network server. Use url tftp://server/path1.

Note You cannot use a TFTP repository for performing a Cisco CDA upgrade.

Defaults

No default behavior or values.

Command Modes

Configuration

Usage Guidelines

When configuring url sftp: in the submode, you must provide the host-key under repository configuration through CLI and the RSA fingerprint is added to the list of SSH known hosts.

To disable this function, use the no form of host-key host command in the submode.

Cisco CDA displays the following warning when you configure a secure ftp repository in the administration user interface in Administration > System > Maintenance > Repository > Add Repository.

The host key of the SFTP server must be added through the CLI by using the host-key option before this repository can be used.

A corresponding error is thrown in the Cisco ADE logs when you try to back up into a secure FTP repository without configuring the host-key.

Example 1

/admin# configure termainal

/admin(config)# repository myrepository

/admin(config-Repository)# url sftp://cda

/admin(config-Repository)# host-key host cda

host key fingerprint added

# Host cda found: line 1 type RSA

2048 f2:e0:95:d7:58:f2:02:ba:d0:b8:cf:d5:42:76:1f:c6 cda (RSA)

 

/admin(config-Repository)# exit

/admin(config)# exit

/admin#

Related Commands

Command

Description

backup

Performs a backup (Cisco CDA and Cisco ADE OS) and places the backup in a repository.

restore

Performs a restore and takes the backup out of a repository.

show backup history

Displays the backup history of the system.

show repository

Displays the available backup files located on a specific repository.




  1. Server is the server name and path refers to /subdir/subsubdir. Remember that a colon (:) is required after the server for an NFS network server.