User Tools

Site Tools


linux:backup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
linux:backup [2017/11/11 18:11]
tkilla
linux:backup [2022/10/20 20:30]
tkilla
Line 5: Line 5:
 ===== Simple dd backup of a partition or (raspi) SD card ===== ===== Simple dd backup of a partition or (raspi) SD card =====
  
 +Replace sdX with your SDcard (check fdisk -l)
 +
 +
 +  dd bs=4M if=/dev/sdX | gzip -c9 > /home/your_username/image`date +%d%m%y`.gz
 +
 +  # 2. terminal:
 +  watch progress
 +
 +Restore:
 +  gzip -dc /home/your_username/image....gz | dd bs=4M of=/dev/sdX
  
-  dd bs=4M if=/dev/sdb | gzip > /home/your_username/image`date +%d%m%y`.gz 
linux/backup.txt ยท Last modified: 2022/10/20 20:31 by tkilla