MarDre
Posts: 1
Joined: Sun Nov 10, 2019 1:43 pm

Creating a Pi Image via Network

Sun Nov 10, 2019 1:58 pm

Hello Community,

I hope i am not asking a question which has already been asked...

I am working with a my Pi remotly and i am not always able to plug in USB devices or remove my SD Card.

I would like to know, if there is a way to create an Image of my Pi over the Network conection.

There are a few criteria for this:

- the Pi is running
- the Pi must be running while and after the Image is created
- the Pi is connected to a Windows PC
- the Image must be an Image of the real used data, not the whole 32gb SD Card
- I want to use the Image on other Pi's --> These Pi's i can acces physically

Here are my Os Information:
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"

Thank you for your help in advance!

Best regards!

MarDre

User avatar
topguy
Posts: 5882
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Creating a Pi Image via Network

Mon Nov 11, 2019 2:12 am

- the Image must be an Image of the real used data, not the whole 32gb SD Card
Then its not really an "image" anymore.

But yes you can make an archive of all the files in the file-system even if its running and you can extract those over to another card if you want.

This article migth have a solution to your problem.
https://www.cyberciti.biz/faq/howto-use ... h-session/

RonR
Posts: 543
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: Creating a Pi Image via Network

Mon Nov 11, 2019 4:01 am

MarDre wrote:
Sun Nov 10, 2019 1:58 pm
I would like to know, if there is a way to create an Image of my Pi over the Network conection.

There are a few criteria for this:

- the Pi is running
- the Pi must be running while and after the Image is created
- the Pi is connected to a Windows PC
- the Image must be an Image of the real used data, not the whole 32gb SD Card
- I want to use the Image on other Pi's --> These Pi's i can acces physically

Yes to all your criteria. Simply mount a windows share on /media or /mnt:

Code: Select all

mount -t cifs -o username=USERNAME,password=PASSWORD //WINDOWS_SHARE /mnt

and use image-backup from Image File Utilities. image-backup can even do incremental updates to the image file as things change on the Raspberry Pi.

Return to “Beginners”