6.5.5 Transferring files using a memory card
Use the cp command to transfer files to a memory card.
- <Structure of this section>
(1) To transfer a backup configuration file to the Switch
After transferring the backup configuration file from a memory card to your home directory (/usr/home/operator), copy it to the startup configuration by using the copy operation command. The following figure shows an example of transferring a backup configuration file to the Switch by using the cp command.
> cd /usr/home/operator > cp mc-file backup.cnf backup.cnf ..1 > enable # copy /usr/home/operator/backup.cnf startup-config ..2 Configuration file copy to startup-config? (y/n): y ..3 # |
-
Transfer the backup configuration file from the memory card.
-
Use the backup configuration file (backup.cnf) as the startup configuration.
-
A confirmation message asking whether you want to replace the existing startup configuration appears.
(2) When transferring a backup configuration file to MC
The following figure shows an example of transferring a backup configuration file stored in the Switch to a memory card.
> cd /usr/home/operator > enable # copy running-config backup.cnf ..1 Configuration file copy to /usr/home/operator/backup.cnf? (y/n) : y # exit > cp backup.cnf mc-file backup.cnf ..2 > |
-
Copy the running configuration file to the backup configuration file.
-
Transfer the backup configuration file to the memory card.