<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>Archives des sauvegarde - La programmation sur le web</title>
	<atom:link href="https://programmation.surleweb-france.fr/tag/sauvegarde/feed/" rel="self" type="application/rss+xml" />
	<link>https://programmation.surleweb-france.fr/tag/sauvegarde/</link>
	<description>La programmation gratuite pour tous</description>
	<lastBuildDate>Fri, 19 Mar 2021 17:30:09 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2023/08/cropped-19518430-icone-de-programmation-pour-votre-site-web-mobile-presentation-et-conception-de-logo-gratuit-vectoriel.jpg?fit=32%2C32&#038;ssl=1</url>
	<title>Archives des sauvegarde - La programmation sur le web</title>
	<link>https://programmation.surleweb-france.fr/tag/sauvegarde/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">176210735</site>	<item>
		<title>Créer une image de la carte SD du Raspberry depuis le shell</title>
		<link>https://programmation.surleweb-france.fr/creer-une-image-de-la-carte-sd-du-raspberry-depuis-le-shell/</link>
					<comments>https://programmation.surleweb-france.fr/creer-une-image-de-la-carte-sd-du-raspberry-depuis-le-shell/#respond</comments>
		
		<dc:creator><![CDATA[Zigomato]]></dc:creator>
		<pubDate>Fri, 19 Mar 2021 17:30:08 +0000</pubDate>
				<category><![CDATA[Raspberry]]></category>
		<category><![CDATA[clone]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[raspberry]]></category>
		<category><![CDATA[sauvegarde]]></category>
		<category><![CDATA[sd]]></category>
		<guid isPermaLink="false">https://programmation.surleweb-france.fr/?p=820</guid>

					<description><![CDATA[<p>Tu es satisfait de ton installation de Raspberry Pi Os, tout est bien configuré, ton wifi, tes comptes, le SSH, les différents paquets pourquoi pas ton serveur web (bien entendu, en suivant mes différents articles). Même si les opérations sont assez simples, elles t'ont certainement pris un certain temps (voire un temps certain). Il est temps de faire ta sauvegarde originale.</p>
<p class="continue-reading-button"> <a class="continue-reading-link" href="https://programmation.surleweb-france.fr/creer-une-image-de-la-carte-sd-du-raspberry-depuis-le-shell/">Continuer la lecture<i class="crycon-right-dir"></i></a></p>
<p>L’article <a href="https://programmation.surleweb-france.fr/creer-une-image-de-la-carte-sd-du-raspberry-depuis-le-shell/">Créer une image de la carte SD du Raspberry depuis le shell</a> est apparu en premier sur <a href="https://programmation.surleweb-france.fr">La programmation sur le web</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Tu es satisfait de ton installation de Raspberry Pi Os, tout est bien configuré, <a href="https://programmation.surleweb-france.fr/raspberry-activer-le-wifi/">ton wifi</a>, tes comptes, <a href="https://programmation.surleweb-france.fr/raspberry-pi-connexion-ssh/">le SSH</a>, les différents paquets pourquoi pas <a href="https://programmation.surleweb-france.fr/installer-serveur-web-complet/">ton serveur web</a> (bien entendu, en suivant mes différents articles). Même si les opérations sont assez simples, elles t&rsquo;ont certainement pris un certain temps (voire un temps certain). Il est temps de faire ta sauvegarde originale.</p>



<p>Ici, il ne sera pas question de faire un système de gestion de backup, tu verras simplement en 2 ligne de commandes, comment obtenir une image complète de ta carte SD.</p>



<h2 class="wp-block-heading">Identification de l&rsquo;identifiant de la carte SD</h2>



<p>Tu vas commencer par retrouver l&rsquo;identifiant de ta carte SD où est déposé ton système. Pour cela, dans le terminal :</p>



<pre class="EnlighterJSRAW" data-enlighter-language="shell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">df -h</pre>



<p>La console te retournera ce genre de message (je suis en SSH mais ça ne change pas grand chose) :</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img fetchpriority="high" decoding="async" width="463" height="180" src="//i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/03/capture-shell-identification-carte-SD.png" alt="" class="wp-image-821" srcset="https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/03/capture-shell-identification-carte-SD.png?w=463&amp;ssl=1 463w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/03/capture-shell-identification-carte-SD.png?resize=300%2C117&amp;ssl=1 300w, https://i0.wp.com/programmation.surleweb-france.fr/wp-content/uploads/2021/03/capture-shell-identification-carte-SD.png?resize=150%2C58&amp;ssl=1 150w" sizes="(max-width: 463px) 100vw, 463px" /><figcaption>Capture de la commande df -h</figcaption></figure></div>



<p>Dans mon cas, le dossier « boot » est installé sur la partition « p1 » de <strong>mmcblk0</strong>, c&rsquo;est cet identifiant qu&rsquo;il faudra conservé donc <strong>/dev/mmcblk0</strong>.</p>



<h2 class="wp-block-heading">Création de l&rsquo;image avec la commande DD</h2>



<p>On en vient à la création de la l&rsquo;image, celle-ci prendra un peu de temps pour le Pi mais ne te prendra que quelques secondes à lancer, dans la console :</p>



<pre class="EnlighterJSRAW" data-enlighter-language="shell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">dd if=/dev/mmcblk0 bs=4 | pv -pterb | dd of=/home/pi/Documents/Rasp-Jeedom-2021-03-19.img</pre>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>La commande « pv » n&rsquo;est pas directement installé sur la distribution, je vous laisse la découvrir sur <a href="https://programmation.surleweb-france.fr/informations-sur-le-temps-dune-tache/">cette page</a>.</p></blockquote>



<p>Une fois que l&rsquo;exécution est fini, tu pourras récupérer l&rsquo;image créée sur une clé USB, par un serveur FTP ou tout autre moyen que tu juges efficace.</p>



<h2 class="wp-block-heading">Conclusion</h2>



<p>Maintenant, même si tu fais des erreurs, tu pourras toujours retrouver ton installation initiale. D&rsquo;ailleurs, je te conseille de procéder ainsi dès que tu juges que ton système mérite d&rsquo;être sauvegardé.</p>
<p>L’article <a href="https://programmation.surleweb-france.fr/creer-une-image-de-la-carte-sd-du-raspberry-depuis-le-shell/">Créer une image de la carte SD du Raspberry depuis le shell</a> est apparu en premier sur <a href="https://programmation.surleweb-france.fr">La programmation sur le web</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://programmation.surleweb-france.fr/creer-une-image-de-la-carte-sd-du-raspberry-depuis-le-shell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">820</post-id>	</item>
	</channel>
</rss>
