The Storage widget provides the ability to view system information including internal flash memory, CPU utilization, and log sizes, as well as to perform system and database backup and restore operations. It also provides the ability to change logging settings (data and/or event logging, and storing on an SD Card).
Warning: You cannot install a USB flash drive into a SmartServer with any USB network interfaces, such as the U60 FT network interface. As a result, you cannot use a USB flash drive for data log storage if you have any USB network interfaces attached to your SmartServer. Instead, use the SD Card for data log storage.
This section consists of the following:
Erasing Data on the SD Card
The command line can be used to delete SmartServer IoT database and system backup files from the SD Card. Using the command line, you can select specific database and system backup files to be removed, or you can remove all of the backup files.
The CMS Storage widget can be used to erase all of the data that is stored on the SD Card, including the SmartServer database. Be sure you intend for all of the data on the SD Card to be erased before proceeding with this operation.
The sections that follow describe these operations.
Using the Command Line
To delete SmartServer database and system backup files that are stored on the SD Card using the command line (ssh or console), perform the following steps:
- Connect and log into to the SmartServer. See Connecting to Your SmartServer for more information.
- Enter the following command to change to the /media/sdcard/backups directory:
Enter the following command to view the directory file contents and its size:
The database and system backup files are stored with the date and time of their creation encoded into the name using the format yyyy-mm-dd-hhmmss as shown in the following examples:
Note: Database backups are .zip files and full system backups are .tgz files.
-rw-r--r-- 1 root root 10258111 May 6 23:19 SmartServer-DB-Backup-2021-05-07-031940.zip
-rw-r--r-- 1 root root 878744783 May 7 00:12 SmartServer-System-Backup-2021-05-07-035021.tgz
rm command to remove a file(s) as shown in the following examples with the date and time specific to files:
Use the following command to remove all of the contents of the /media/sdcard/backups directory:
Warning: Be sure to only perform this command to remove the contents of the /media/sdcard/backups directory.
Using the CMS
To erase the SmartServer database stored on the SD Card, as well as all the contents on the SD Card, perform the following steps:
Warning: Before confirming this operation, be sure you intend for all of the data on the SD Card to be erased, including the CMS database.
Open the CMS Storage widget.
The following dialog box appears:
Click OK to erase the CMS database stored on the SD Card, as well as all the contents on the SD Card.
Reformatting the SD Card
To reformat the SD Card and erase all of its contents, perform the following steps:
Warning: Before confirming this operation, be sure you intend for all of the data on the SD Card to be erased.
Open the CMS Storage widget.
The following confirmation dialog box appears.
- Click OK to reformat the SD Card and erase all of its content.