• Recent
    • Docs
    • Github
    • 百度网盘
    • Google
    • Official
    • Shop
    • Register
    • Login

    TM-CP1B backup scripts

    Scheduled Pinned Locked Moved Pi CP1B
    1 Posts 1 Posters 11 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      george
      last edited by

      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.
        replace.png
      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post