Check out example codes for "how to backup raspberry pi sd card". It will help you in understanding the concepts better.

Code Example 1

sudo dd bs=4M if=/dev/sdb of=raspbian.img

Learn ReactJs, React Native from akashmittal.com