RPi BackUp: Unterschied zwischen den Versionen

Aus AirSpaceWatch & More
Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
 
<syntaxhighlight lang="bash" line='line'>
 
<syntaxhighlight lang="bash" line='line'>
 +
#find device:
 +
pi@raspberrypi:~ $ lsblk -p
 +
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
 +
/dev/mmcblk0 179:0 0 29.9G 0 disk
 +
\u251c\u2500/dev/mmcblk0p1 179:1 0 60M 0 part /boot
 +
\u2514\u2500/dev/mmcblk0p2 179:2 0 3.7G 0 part /
 +
 
#remote backup command to win machine:
 
#remote backup command to win machine:
 
ssh pi@192.168.8.3 "sudo dd if=/dev/mmcblk0 bs=1M | gzip -" | dd of=~/winhome/Desktop/ASWPiBackup.gz
 
ssh pi@192.168.8.3 "sudo dd if=/dev/mmcblk0 bs=1M | gzip -" | dd of=~/winhome/Desktop/ASWPiBackup.gz

Version vom 7. Oktober 2020, 07:38 Uhr

 1 #find device:
 2 pi@raspberrypi:~ $ lsblk -p
 3 NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
 4 /dev/mmcblk0 179:0 0 29.9G 0 disk
 5 \u251c\u2500/dev/mmcblk0p1 179:1 0 60M 0 part /boot
 6 \u2514\u2500/dev/mmcblk0p2 179:2 0 3.7G 0 part /
 7 
 8 #remote backup command to win machine:
 9 ssh pi@192.168.8.3 "sudo dd if=/dev/mmcblk0 bs=1M | gzip -" | dd of=~/winhome/Desktop/ASWPiBackup.gz
10 
11 #playback:
12 #unmount SDCard first, then
13 gzip -dc ~/Desktop/pibackup.gz | sudo dd of=/dev/rdisk# bs=1m conv=noerror,sync