Pocketchip backup and restore

how to backup and restore pocketchip/chip:

first insert and format (if needed) a usb drive

sudo mkdir /mnt/backup
sudo mount /dev/sda1 /mnt/backup
cd /
sudo tar -zcvpf /mnt/backup/nameofbackup.tar.gz –directory=/ –exclude=proc –exclude=sys
–exclude=dev –exclude=sys –exclude=mnt –exclude=backup . <-dont forget this dot restore sudo mount /dev/sda1 /mnt/backup cd / tar -zxvpf /mnt/backup/nameofbackup.tar.gz so if you mess up your chip flash chip and restore backup (saves a lot of time doing apt update :))