XOS configuration and VAP-image backup/restore manual commands


Article ID: 167921


Updated On:




Presents commands with examples how to perform manual backup/restore of the VAP image and XOS configuration.


Depending on situation and requirements it might be feasible to archive just one of the VAP images instead of the whole VAP-group including common folder.

Below are presented commands with examples how the backup and restore might be performed manually.


To perform backup of all files for a specific VAP, below command might be used from CPM root shell level:

# cd /tftpboot/<vapgroup_index>
# tar --one-file-system -cjvf <path_to_the_created_file> ./

This command might be run with lowest priority by using "nice -n 19 <command>" command.

Below is example which tars and compresses files from "fw_1" VAP which is part of "fw" vap-group

# mkdir /tftpboot/tmp
# cd /tftpboot/fw_1
# nice -n 19 tar --one-file-system -cjvf /tftpboot/tmp/fw_1_20121003.tbz ./

Please note that the archive file created with above command should be stored on the file-system where's enough space for it, hence please verify free space prior performing backup.

Each vap-group besides images for each VAP, named "<VAPGROUPNAME>_<INDEX>" has "<VAPGROUPNAME>_common" image which is backed up when using archive_dir tool delivered on newer XOS releases.

Once files are created should be off-loaded to external system.

To restore earlier tared and compressed files, below steps should work:
# cd /tftpboot/<vapgroup_index>
# tar xjvf <path_to_the_created_file>

To backup XOS configuration, the file might be stored in flat format and then imported easily.

CLI# copy running-config -flat <path_to_file>

Configuration stored in flat format might be then easily imported on fresh XOS using execute command.

Should there be any additional changes/patches performed directly on file-system of CPM these should backed up as well using i.e. tar command.