RPi BackUp: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „ #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 #playback: #unmou…“) |
|||
Zeile 1: | Zeile 1: | ||
− | + | <syntaxhighlight lang="bash" line='line'> | |
#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 | ||
Zeile 6: | Zeile 6: | ||
#unmount SDCard first, then | #unmount SDCard first, then | ||
gzip -dc ~/Desktop/pibackup.gz | sudo dd of=/dev/rdisk# bs=1m conv=noerror,sync | gzip -dc ~/Desktop/pibackup.gz | sudo dd of=/dev/rdisk# bs=1m conv=noerror,sync | ||
+ | </syntaxhighlight> |
Version vom 7. Oktober 2020, 07:37 Uhr
1 #remote backup command to win machine:
2 ssh pi@192.168.8.3 "sudo dd if=/dev/mmcblk0 bs=1M | gzip -" | dd of=~/winhome/Desktop/ASWPiBackup.gz
3
4 #playback:
5 #unmount SDCard first, then
6 gzip -dc ~/Desktop/pibackup.gz | sudo dd of=/dev/rdisk# bs=1m conv=noerror,sync