TM-CP1B backup scripts
-
In the process of user development, after building their own application, it is usually necessary to back up the file system and then copy it to other machines. The following provides backup scripts and operation methods:
- list itemIt is best to use a file system with a capacity greater than twice that of a USB flash drive, for example, if the file system is 4GB, choose an 8GB capacity USB flash drive and format it in NTFS format.
* Copy the script file to a USB drive.
* Insert the USB drive into the USB port of the CP1B machine and turn it on.
* Use the following command to mount a USB drive to the/mnt directory.
sudo mount /dev/sda1 /mnt
* Enter the/mnt directory and execute the script.
cd /mnt sudo ./backup-cp1b.sh
* After the script is executed, the root directory of the USB drive will generate a * * *. img file, which can be used to replace the rootfs. img file in the compressed image file.
- list itemIt is best to use a file system with a capacity greater than twice that of a USB flash drive, for example, if the file system is 4GB, choose an 8GB capacity USB flash drive and format it in NTFS format.