Browse the link: Image File Utilities
Download image-utils.zip
- Unzip image-utils.zip to ~/image-copy
- cd ~/image-copy
- Create shell script, mkpi4.sh from dash line to dash line:
----------------------------------------------------------------------
#!/bin/bash
if [ "$#" -lt 1 ]; then
echo "Usage: $0 <path>"
exit
fi
prefix=$1
IMG=$(date +pi4_bookworm_%Y%m%d.img)
START=$(date +%F\ %T)
sudo /bin/bash /home/chiao/image-copy/image-backup --initial $prefix/$IMG,,1000 -o -P,--exclude-from=/home/chiao/image-copy/exclude.txt
echo "Start: $START"
echo "End: $(date +%F\ %T)"
---------------------------------------------------------------------- - sudo mount -t nfs 192.168.1.2:/BACKUP-nvme1n1p2/pi4 /mnt/nfs
- sudo ./mkpi4.sh /mnt/nfs
- Wait ...
沒有留言:
張貼留言