Raspberry Pi: Backup & Fast Deployment
Tags: iot, rasberrypi, tutorial, deployment
Published: 2022-10-04 09:31:23

---
title: Raspberry Pi: Backup & Fast Deployment
published: true
date: 2022-08-09 13:10:27 UTC
tags: iot, rasberrypi, tutorial, deployment
canonical_url: https://tech.forums.softwareag.com/t/raspberry-pi-backup-fast-deployment/259989
---


## Introduction

In this topic, I will be speaking about taking an image as a backup from an already deployed (Agent/Edge/etc…), then either restore to the same Raspberry Pi or to another one, to make the deployment of multiple OS + Agent/Edge as a piece of cake.

## Pre-requisite

- Raspberry Pi: That has an operating system and agent if possible.
- [Win32 Disk Imager](https://sourceforge.net/projects/win32diskimager/)
- [Raspberry Pi Imager](https://www.raspberrypi.com/software/)

## Steps to follow

- Download & install the needed software in Pre-requisite section.
  

## Back Up Steps

- Turn off the Raspberry Pi that you want to backup its image
- Remove its SD card and plug it in the Computer:

[![rpiCard](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/a/2/a2ccf9cc790fbc88d0fafc07b9c78c8aae500fa3_2_345x176.png)](https://aws1.discourse-cdn.com/techcommunity/original/3X/a/2/a2ccf9cc790fbc88d0fafc07b9c78c8aae500fa3.png "rpiCard")

- In any folder, create a text file, name it by the day date and save it as “.img” extension:

![1](https://aws1.discourse-cdn.com/techcommunity/original/3X/7/c/7c3543fa774f990ee7cfecd7cd0bd7367cabf5e0.png)

![2](https://aws1.discourse-cdn.com/techcommunity/original/3X/c/0/c09b2cbc58858a28a52a3bad64ea1af223934942.png)

- Run “win32DiskImager” as an administrator, then select the image file you created:

[![3](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/8/b/8bd6560a03c85d04c973b3fba5cf4181e5236c70_2_517x349.png)](https://aws1.discourse-cdn.com/techcommunity/original/3X/8/b/8bd6560a03c85d04c973b3fba5cf4181e5236c70.png "3")

  

- Select the SD drive to read the image from, then click “Read”:

![4](https://aws1.discourse-cdn.com/techcommunity/original/3X/d/5/d54a52a6f9a52ece135f20a137eda4af913ac28d.png)

  

- Wait till the process completes:

![5](https://aws1.discourse-cdn.com/techcommunity/original/3X/4/0/406c2309c45e4c39e7321fdf15038d936267e107.png)

  

![6](https://aws1.discourse-cdn.com/techcommunity/original/3X/8/3/831e64ba2111701e4472ffff5d59365115cd4862.png)

  
- Now the image is copied and you can check the file properties to see its size changed to be same as the SD card size:  

[![imageSize](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/6/f/6f158f1b45cd08f4b615596d32c0f05b7ac6ecc7_2_331x499.png)](https://aws1.discourse-cdn.com/techcommunity/original/3X/6/f/6f158f1b45cd08f4b615596d32c0f05b7ac6ecc7.png "imageSize")

  

- Remove the SD card from the Computer  
  

## Restore Steps

- Plug in the new SD Card to the computer

- Run “Raspberry Pi Imager” as an administrator, then Click on “CHOOSE OS”:

![8](https://aws1.discourse-cdn.com/techcommunity/original/3X/0/2/02cc46f9b60fbea5586e71842893f7f0ba0c47f1.png)

- Select “Use Custom” from the drop down list:

![9](https://aws1.discourse-cdn.com/techcommunity/original/3X/e/e/eef4cb82dc7784558a904395db60e7ec6683d4b6.png)

  

- Select the image you have created:

[![10](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/a/7/a7ba5e5410edb9a9c19b24a401848caa392b4180_2_652x500.png)](https://aws1.discourse-cdn.com/techcommunity/original/3X/a/7/a7ba5e5410edb9a9c19b24a401848caa392b4180.png "10")

  

- Click on “CHOOSE STORAGE” and select the SD card:

![11](https://aws1.discourse-cdn.com/techcommunity/original/3X/f/4/f4bfdbe99fc4b39d9f9b081f88cca10d3e257cb9.png)

  
- Now Click on "Write" and a message will show up, click yes:

![12](https://aws1.discourse-cdn.com/techcommunity/original/3X/d/0/d0c3d585467ccd56b43e9043fe57cbc4c29d51de.png)

  

- Wait till the process completes:

  

![13](https://aws1.discourse-cdn.com/techcommunity/original/3X/2/3/2328335b51d9930089b2cb4958ff530e301a4795.png)

  

![14](https://aws1.discourse-cdn.com/techcommunity/original/3X/9/c/9c84ea277d5770c29ff79001dd542510e927cb7b.png)

  
- Click CONTINUE and remove the SD and plug it either in new Raspberry Pi or the one that you want to restore the backup to.
## Useful links | Relevant resources

* [Check this tutorial](https://raspberrytips.com/backup-raspberry-pi/#:~:text=The%20best%20way%20to%20create,one%20way%20to%20do%20this.)


[Read full topic](https://tech.forums.softwareag.com/t/raspberry-pi-backup-fast-deployment/259989)