Only N3048EP-ON/N3048ET-ON/N3132PX-ON/N3024ET-ON switches support this feature.
N3048EP-ON/N3048ET-ON and N3132PX use the OverlayFS file system which doesn’t allow the user files on the switch to be saved from the RAM to the flash automatically. This results in the loss of user files when the switch is powered off. The user can add the file path (the file that you want to be saved even after power off) to the backup list, and then run the save_config command. With this technique, the user files on the backup list are backed up to the flash ensuring that the user files are not lost when the power is turned off.
PICOS has built-in default backup files, as listed below.
If the user operation makes change to the above files, you need to manually run the configuration saving command to save these files from the RAM to the flash. For details, please refer to Configuration Saving Guide and copy running-config startup-config.
However, if you want to save a user files that are not in the above default backup file list, you can follow the backup operation steps described below.
Step1 Check whether the running system is PICOS or PICOS2 (determine the path of backup_files described in Step 2).
Issue the following command under Linux bash. If the result contains picos1.sqsh, the running system is PICOS; if picos2.sqsh, the running system is PICOS2.
Step2 Add the file path to the backup list (the file that you want to be saved even after power off), to backup_files file.
The path of the backup_files file corresponding to the running system is as follows:
For example, regarding the running system is PICOS, if you want to backup /home/admin/a.txt, you need to add /home/admin/a.txt to the backup file list.
Then check if /home/admin/a.txt is on the backup list.
Step3 Under Linux bash, issue the following command manually to begin file backup.
After the above steps, the user file /home/admin/a.txt will be backed up to the flash. This file will not be lost when the power is turned off.