How to create a backup image of your SD card while your Raspberry PI is running


You can create a backup (.img) of your SD card to a network / USB drive while the card is inserted in your Raspberry PI!

  • make sure you have access to your network drive / usb drive;
    to see the devices type:
    sudo cat /etc/fstab
    
  • create an img of the card currently in the PI to your network drive / USB drive using the ddcommand:
    sudo dd if=/dev/mmcblk0p2 of=/home/pi/networkdrive/my.img bs=1M

    (replace /dev/mmcblk0p2 with your own SD card and /home/pi/networkdrive/my.img with your own network drive / USB drive + image file name)

Good luck!

Last update:
20-01-2016 16:27
Author:
Karl Hudgell
Revision:
1.0
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.

Latest FAQs RSS

  1. Dockerized Download VM (30-01-2019 20:26)
  2. Jmeter + Performance Plugin + Jenkins Pipeline (16-02-2018 12:49)
  3. MySQL DB Backup Script (04-09-2017 10:16)
  4. Replace Cabin Filter (20-02-2017 13:45)
  5. Replace Nexus 6 Glass (15-02-2017 15:11)