USB Backup
sudo mkfs.vfat /dev/sda1 -n usbdrivesudo mount /dev/sda1 /mnt
sudo chmod 755 /mnt
sudo dd if=/dev/mmcblk0p2 of=backupimage.img
Note: sda1 is the usb device , mmcblk0p2 is the memory card. Adjust acordenly.
Backup to Windows Pc
sudo mount -t cifs -o username=PI,password=PASSWORD//WINDOWSPC/share /mnt/smbbackup -o rw
sudo dd if=/dev/mmcblk0p2 of=/mnt/smbbackup/backupimage.img
Note: mmcblk0p2 is the memory share
No comments:
Post a Comment