<?xml 
version="1.0" encoding="utf-8"?>
<rss version="2.0" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
>

<channel xml:lang="fr">
	<title>Minimalteck.fr</title>
	<link>http://minimalteck.fr/</link>
	
	<language>fr</language>
	<generator>SPIP - www.spip.net</generator>

	<image>
		<title>Minimalteck.fr</title>
		<url>http://minimalteck.fr/local/cache-vignettes/L48xH48/siteon0-e5814.png</url>
		<link>http://minimalteck.fr/</link>
		<height>48</height>
		<width>48</width>
	</image>



<item xml:lang="fr">
		<title>Acc&#233;l&#233;rer les copies distantes avec tar sur ssh</title>
		<link>http://minimalteck.fr/admin/accelerer-les-copies-distantes</link>
		<guid isPermaLink="true">http://minimalteck.fr/admin/accelerer-les-copies-distantes</guid>
		<dc:date>2009-05-25T11:19:20Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>Minimalteck</dc:creator>


		<dc:subject>Tips</dc:subject>
		<dc:subject>Sauvegarde</dc:subject>

		<description>Contexte : vous devez copier depuis une machine distante un important volume de donn&#233;es&#8230; la premi&#232;re id&#233;e qui vient est sans doute scp&#8230; Mais on peut optimiser le transfert en utilisant tar sur ssh : R&#233;cup&#233;ration depuis une machine distante du r&#233;pertoire &quot;local_directory_to_backup&quot; situ&#233; dans le chemin &quot;local_path_parent_directory&quot; : ssh root@machinelointaine &#8220;cd path_of_parent_directory; tar czf - local_directory_to_backup&quot; | tar xzf - -C local_path_for_backup T&#233;l&#233;chargement du r&#233;pertoire (...)

-
&lt;a href="http://minimalteck.fr/admin/" rel="directory"&gt;Admin&lt;/a&gt;

/ 
&lt;a href="http://minimalteck.fr/tips" rel="tag"&gt;Tips&lt;/a&gt;, 
&lt;a href="http://minimalteck.fr/sauvegarde" rel="tag"&gt;Sauvegarde&lt;/a&gt;

		</description>


 <content:encoded>&lt;img class='spip_logos' alt=&quot;&quot; src=&quot;http://minimalteck.fr/local/cache-vignettes/L150xH150/arton38-f1e14.png&quot; width='150' height='150' style='height:150px;width:150px;' /&gt;
		&lt;div class='rss_texte'&gt;&lt;p&gt;Contexte : vous devez copier depuis une machine distante un important volume de donn&#233;es&#8230; la premi&#232;re id&#233;e qui vient est sans doute scp&#8230;
&lt;br /&gt;Mais on peut optimiser le transfert en utilisant tar sur ssh :&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://minimalteck.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; R&#233;cup&#233;ration depuis une machine distante du r&#233;pertoire &quot;local_directory_to_backup&quot; situ&#233; dans le chemin &quot;local_path_parent_directory&quot; :&lt;/p&gt; &lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;ssh root@machinelointaine &#8220;cd path_of_parent_directory; tar czf - local_directory_to_backup&quot; | tar xzf - -C local_path_for_backup&lt;/code&gt;&lt;/div&gt; &lt;p&gt;&lt;img src=&quot;http://minimalteck.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; T&#233;l&#233;chargement du r&#233;pertoire &quot;local_directory_to_backup&quot; vers la machine distante dans le r&#233;pertoire &quot;remote_path_for_backup&quot;&lt;/p&gt; &lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;tar czf - local_directory_to_backup | ssh root@machinelointaine &quot;tar xzf - -C remote_path_for_backup&quot;&lt;/code&gt;&lt;/div&gt; &lt;p&gt;&lt;img src=&quot;http://minimalteck.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; Il appara&#238;t m&#234;me qu'en substituant la compression via tar avec gzip/gunzip on obtient un r&#233;sultat encore meilleur&#8230; la commande devient alors :&lt;/p&gt; &lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;ssh root@machinelointaine &#8220;cd path_of_parent_directory; tar cf - local_directory_to_backup | gzip&quot; | gunzip -q | tar xf - -C local_path_for_backup&lt;/code&gt;&lt;/div&gt; &lt;p&gt;Ceci est surtout utile pour une copie/sauvegarde ponctuelle ; si le contexte est celui de sauvegardes r&#233;currentes, creusez plut&#244;t du c&#244;t&#233; de &lt;a href='http://minimalteck.fr/admin/backup-rsync-sur-ssh' class='spip_in'&gt;RSync&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;
		&lt;div class='rss_ps'&gt;&lt;p&gt;&lt;strong&gt;R&#233;f&#233;rences :&lt;/strong&gt;
&lt;br /&gt;&lt;img src=&quot;http://minimalteck.fr/squelettes-dist/puce.gif&quot; width=&quot;8&quot; height=&quot;11&quot; class=&quot;puce&quot; alt=&quot;-&quot; /&gt; &lt;a href='http://www.openssh.com/fr/index.html' class='spip_out' title=&quot;OpenSSH (fr)&quot; rel='external'&gt;OpenSSH (fr)&lt;/a&gt;
&lt;br /&gt;&lt;img src=&quot;http://minimalteck.fr/squelettes-dist/puce.gif&quot; width=&quot;8&quot; height=&quot;11&quot; class=&quot;puce&quot; alt=&quot;-&quot; /&gt; &lt;a href='http://pwet.fr/man/linux/commandes/tar' class='spip_out' title=&quot;Man tar (fr)&quot; rel='external'&gt;Man tar (fr)&lt;/a&gt;
&lt;br /&gt;&lt;img src=&quot;http://minimalteck.fr/squelettes-dist/puce.gif&quot; width=&quot;8&quot; height=&quot;11&quot; class=&quot;puce&quot; alt=&quot;-&quot; /&gt; &lt;a href='http://www.gzip.org/#faq' class='spip_out' title=&quot;FAQ GZIP&quot; rel='external'&gt;FAQ GZIP&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>Sauvegarde et restauration du MBR</title>
		<link>http://minimalteck.fr/admin/sauvegarde-et-restauration-du-mbr</link>
		<guid isPermaLink="true">http://minimalteck.fr/admin/sauvegarde-et-restauration-du-mbr</guid>
		<dc:date>2009-04-30T13:45:41Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>Minimalteck</dc:creator>


		<dc:subject>Rapido Tuto</dc:subject>
		<dc:subject>Sauvegarde</dc:subject>

		<description>Le MBR (Master Boot Record) correspond au premier secteur physique d'un disque dur. Le MBR contient sur 512 octets, le chargeur d'amor&#231;age (ie GRUB, LILO, etc.) et la table des partitions principales (ou primaires, mais attention pas la table des partitions logiques). La sauvegarde du MBR peut se r&#233;aliser avec la commande dd car celle-ci effectue une copie litt&#233;rale, octet par octet. Mettons nous en situation : root@jupiter : # fdisk -l Disk /dev/sda : 160.0 GB, 160041885696 bytes 255 (...)

-
&lt;a href="http://minimalteck.fr/admin/" rel="directory"&gt;Admin&lt;/a&gt;

/ 
&lt;a href="http://minimalteck.fr/rapido-tuto" rel="tag"&gt;Rapido Tuto&lt;/a&gt;, 
&lt;a href="http://minimalteck.fr/sauvegarde" rel="tag"&gt;Sauvegarde&lt;/a&gt;

		</description>


 <content:encoded>&lt;img class='spip_logos' alt=&quot;&quot; src=&quot;http://minimalteck.fr/local/cache-vignettes/L128xH128/arton37-3aac1.png&quot; width='128' height='128' style='height:128px;width:128px;' /&gt;
		&lt;div class='rss_texte'&gt;&lt;p&gt;Le &lt;a href='http://fr.wikipedia.org/wiki/Master_boot_record' class='spip_out' title=&quot;En savoir plus avec Wikip&#233;dia &quot; rel='external'&gt;MBR (Master Boot Record)&lt;/a&gt; correspond au premier secteur physique d'un disque dur.
&lt;br /&gt;Le MBR contient sur 512 octets, le chargeur d'amor&#231;age (ie GRUB, LILO, etc.) et la table des partitions principales (ou primaires, mais attention pas la table des partitions logiques).&lt;/p&gt; &lt;p&gt;La sauvegarde du MBR peut se r&#233;aliser avec la commande &lt;i&gt; &lt;strong&gt;dd&lt;/strong&gt; &lt;/i&gt; [&lt;a href='#nb1' class='spip_note' rel='footnote' title='Voir man dd ou la doc ubuntu associ&#233;e' id='nh1'&gt;1&lt;/a&gt;] car celle-ci effectue une copie litt&#233;rale, octet par octet.&lt;/p&gt; &lt;p&gt;Mettons nous en situation :&lt;/p&gt; &lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;root@jupiter:~# fdisk -l&lt;br /&gt; &lt;br /&gt; Disk /dev/sda: 160.0 GB, 160041885696 bytes&lt;br /&gt; 255 heads, 63 sectors/track, 19457 cylinders&lt;br /&gt; Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt; Disk identifier: 0x0003efec&lt;br /&gt; &lt;br /&gt; Device Boot Start End Blocks Id System&lt;br /&gt; /dev/sda1 * 1 31 248976 83 Linux&lt;br /&gt; /dev/sda2 32 19457 156039345 5 Extended&lt;br /&gt; /dev/sda5 32 19457 156039313+ 8e Linux LVM&lt;br /&gt; &lt;br /&gt; Disk /dev/sdb: 160.0 GB, 160041885696 bytes&lt;br /&gt; 255 heads, 63 sectors/track, 19457 cylinders&lt;br /&gt; Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt; Disk identifier: 0x000801fa&lt;br /&gt; &lt;br /&gt; Device Boot Start End Blocks Id System&lt;br /&gt; /dev/sdb1 * 1 31 248976 83 Linux&lt;br /&gt; /dev/sdb2 32 19457 156039345 5 Extended&lt;br /&gt; /dev/sdb5 32 19457 156039313+ 8e Linux LVM&lt;/code&gt;&lt;/div&gt; &lt;p&gt;&lt;img src=&quot;http://minimalteck.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; &lt;strong&gt;Sauvegarde du MBR :&lt;/strong&gt;
&lt;code class='spip_code' dir='ltr'&gt;dd if=/dev/sda of=mbr-sda.sav count=1 bs=512&lt;/code&gt;&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://minimalteck.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; &lt;strong&gt;Restauration du MBR :&lt;/strong&gt;
&lt;code class='spip_code' dir='ltr'&gt;dd if=mbr-sda.sav of=/dev/sda&lt;/code&gt;&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://minimalteck.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; &lt;strong&gt;Restauration du MBR sans la table des partitions :&lt;/strong&gt;
&lt;code class='spip_code' dir='ltr'&gt;dd of=/dev/sda if=mbr-sda.sav bs=446 count=1&lt;/code&gt;&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://minimalteck.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; &lt;strong&gt;Sauvegarde de la table de partition &#233;tendue :&lt;/strong&gt;
&lt;code class='spip_code' dir='ltr'&gt;sfdisk -d /dev/sda &gt; table-sda.sfdisk&lt;/code&gt;
L'option &quot;-d&quot; pass&#233; &#224; &lt;a href='http://www.delafond.org/traducmanfr/man/man8/sfdisk.8.html' class='spip_out' title=&quot;Page de man sur delafond.org &quot; rel='external'&gt;sfdisk&lt;/a&gt; permet de g&#233;n&#233;r&#233; un fichier de dump en vue d'une restauration via la m&#234;me commande.&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://minimalteck.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; &lt;strong&gt;Restauration la table de partition &#233;tendue :&lt;/strong&gt;
&lt;code class='spip_code' dir='ltr'&gt;sfdisk /dev/sda &lt; table-sda.sfdisk&lt;/code&gt;&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://minimalteck.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; &lt;strong&gt;Clonage direct de disque dur :&lt;/strong&gt;
&lt;code class='spip_code' dir='ltr'&gt;dd if=/dev/sda of=/dev/sdb bs=512 count=1&lt;/code&gt;
&lt;code class='spip_code' dir='ltr'&gt;sfdisk -d /dev/sda | sfdisk dev/sdb&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;
		&lt;hr /&gt;
		&lt;div class='rss_notes'&gt;&lt;p&gt;&lt;span class=&quot;csfoo htmla&quot;&gt;&lt;/span&gt;[&lt;a href='#nh1' id='nb1' class='spip_note' title='Notes 1' rev='footnote'&gt;1&lt;/a&gt;] &lt;span class=&quot;csfoo htmlb&quot;&gt;&lt;/span&gt;Voir &lt;a href='http://man.gnusquad.org/dd/section-1/fr/' class='spip_out' title=&quot;Page de man sur gnusquad.org&quot; rel='external'&gt;man dd&lt;/a&gt; ou la &lt;a href='http://doc.ubuntu-fr.org/dd' class='spip_out' title=&quot;doc.ubuntu-fr.org&quot; rel='external'&gt;doc ubuntu associ&#233;e&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>Ez-Publish : sauvegarde</title>
		<link>http://minimalteck.fr/dev-web/ez-publish-sauvegarde</link>
		<guid isPermaLink="true">http://minimalteck.fr/dev-web/ez-publish-sauvegarde</guid>
		<dc:date>2009-04-22T11:36:18Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>Minimalteck</dc:creator>


		<dc:subject>Tips</dc:subject>
		<dc:subject>Ez-Publish</dc:subject>
		<dc:subject>CMS</dc:subject>
		<dc:subject>Sauvegarde</dc:subject>

		<description>&#201;tape 1 : Vider les caches : Pour vider les caches d'Ez-Publish, rien de plus simple : se placer dans r&#233;pertoire d'installation de l'instance d'Ez-Publish ex&#233;cuter en ligne de commande (n&#233;cessite php cli) server :/var/www/ez/# php bin/php/ezcache.php &#8212;clear-all Clearing : Cache d'affichage de contenu, Cache Global INI, Cache INI, Cache codepage, Expiry cache, Cache des identifiants de classes, Cache des cl&#233;s de classement, Cache des alias d'URL, Cacher de transformation des caract&#232;res, Alias (...)

-
&lt;a href="http://minimalteck.fr/dev-web/" rel="directory"&gt;D&#233;v. Web&lt;/a&gt;

/ 
&lt;a href="http://minimalteck.fr/tips" rel="tag"&gt;Tips&lt;/a&gt;, 
&lt;a href="http://minimalteck.fr/ez-publish" rel="tag"&gt;Ez-Publish&lt;/a&gt;, 
&lt;a href="http://minimalteck.fr/cms" rel="tag"&gt;CMS&lt;/a&gt;, 
&lt;a href="http://minimalteck.fr/sauvegarde" rel="tag"&gt;Sauvegarde&lt;/a&gt;

		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;div class=&quot;cs_sommaire cs_sommaire_avec_fond&quot; id=&quot;outil_sommaire&quot;&gt; &lt;div class=&quot;cs_sommaire_inner&quot;&gt; &lt;div class=&quot;cs_sommaire_titre_avec_fond&quot;&gt; Sommaire &lt;/div&gt; &lt;ul&gt; &lt;li&gt;&lt;a title=&quot;&#201;tape 1 : Vider les caches :&quot; href=&quot;http://minimalteck.fr/spip.php?page=backend&amp;id_mot=3#outil_sommaire_0&quot;&gt;&#201;tape 1 : Vider les caches (&#8230;)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;&#201;tape 2 : Sauvegarder la base&quot; href=&quot;http://minimalteck.fr/spip.php?page=backend&amp;id_mot=3#outil_sommaire_1&quot;&gt;&#201;tape 2 : Sauvegarder la (&#8230;)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;&#201;tape 3 : Sauvegarder le tout&quot; href=&quot;http://minimalteck.fr/spip.php?page=backend&amp;id_mot=3#outil_sommaire_2&quot;&gt;&#201;tape 3 : Sauvegarder le (&#8230;)&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt;&lt;h3 class=&quot;spip&quot; id=&quot;outil_sommaire_0&quot;&gt;&lt;a title=&quot;Sommaire&quot; href=&quot;http://minimalteck.fr/spip.php?page=backend&amp;id_mot=3#outil_sommaire&quot; class=&quot;sommaire_ancre&quot;&gt; &lt;/a&gt;&#201;tape 1 : Vider les caches :&lt;/h3&gt; &lt;p&gt;Pour vider les caches d'Ez-Publish, rien de plus simple :&lt;/p&gt; &lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; se placer dans r&#233;pertoire d'installation de l'instance d'Ez-Publish&lt;/li&gt;&lt;li&gt; ex&#233;cuter en ligne de commande (n&#233;cessite &lt;a href='http://php.net/manual/fr/features.commandline.php' class='spip_out' title=&quot;PHP en ligne de commande&quot; rel='external'&gt;php cli&lt;/a&gt;)
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;server:/var/www/ez/# php bin/php/ezcache.php --clear-all &lt;br /&gt; Clearing : Cache d'affichage de contenu, Cache Global INI, Cache INI, Cache codepage, Expiry cache, Cache des identifiants de classes, Cache des cl&#233;s de classement, Cache des alias d'URL, Cacher de transformation des caract&#232;res, Alias d'image, Cache des templates, Cache des template block, Cache des templates override, Cache RSS, Cache de informations personnelles des utilisateurs&lt;/code&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; alternativement vous pouvez utiliser un script shell disponible pour les versions ant&#233;rieures &#224; la 3.10 [&lt;a href='#nb1' class='spip_note' rel='footnote' title='Quelle version est install&#233;e ? La r&#233;ponse est l&#224; : server:/var/www/ez/# more (...)' id='nh1'&gt;1&lt;/a&gt;]
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;server:/var/www/ez/# sh bin/shell/clearcache.sh --clear-all&lt;br /&gt; Removing cache files in var/cache/content&lt;br /&gt; Removing ini cache files in var/cache/ini&lt;br /&gt; Removing codepage cache files in var/cache/codepages&lt;br /&gt; Removing template cache files in var/cache/template&lt;br /&gt; Removing template override cache files in var/cache/override&lt;br /&gt; Removing template-block cache files in var/cache/template-block&lt;br /&gt; Removing translation cache files in var/cache/translation&lt;br /&gt; Removing translation cache files in var/cache/wildcard&lt;br /&gt; Removing sortkey cache files in var/cache/sortkey_&lt;br /&gt; Removing user-info cache files in var/cache/user-info&lt;br /&gt; Removing class identifier cache files in var/cache/classidentifiers_&lt;br /&gt; Removing class attribute identifier cache files in var/cache/classattributeidentifiers_&lt;/code&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;h3 class=&quot;spip&quot; id=&quot;outil_sommaire_1&quot;&gt;&lt;a title=&quot;Sommaire&quot; href=&quot;http://minimalteck.fr/spip.php?page=backend&amp;id_mot=3#outil_sommaire&quot; class=&quot;sommaire_ancre&quot;&gt; &lt;/a&gt;&#201;tape 2 : Sauvegarder la base&lt;/h3&gt; &lt;p&gt;Si vous &#234;tes &#233;tourdi, sachez que vous pouvez rapidement retrouver les informations &#171; &lt;i&gt;DatabaseSettings&lt;/i&gt; &#187; dans le fichier &#171; settings/override/site.ini.append.php &#187; [&lt;a href='#nb2' class='spip_note' rel='footnote' title='Pour m&#233;moire le fichier &#171; settings/override/site.ini.append.php &#187; contient (...)' id='nh2'&gt;2&lt;/a&gt;].
&lt;br /&gt;Faire un dump de la base :&lt;/p&gt; &lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;mysqldump -u userez -p --opt ezbase | gzip -9 &gt; ezbase.`date +%d-%m-%Y`.sql.gz&lt;/code&gt;&lt;/div&gt;
&lt;h3 class=&quot;spip&quot; id=&quot;outil_sommaire_2&quot;&gt;&lt;a title=&quot;Sommaire&quot; href=&quot;http://minimalteck.fr/spip.php?page=backend&amp;id_mot=3#outil_sommaire&quot; class=&quot;sommaire_ancre&quot;&gt; &lt;/a&gt;&#201;tape 3 : Sauvegarder le tout&lt;/h3&gt; &lt;p&gt;Il ne reste plus qu'&#224; archiver l'arborescence de notre instance d'Ez-Publish&lt;/p&gt; &lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;server:/var/www/# tar cfz backup_ez.tar.gz ez&lt;/code&gt;&lt;/div&gt; &lt;p&gt;et hop&#8230; l'affaire est dans le sac &lt;img class=&quot;no_image_filtrer&quot; alt=&quot;wink&quot; title=&quot;wink&quot; src=&quot;http://www.minimalteck.fr/plugins/couteau_suisse/img/chatons/wink.gif&quot; width=&quot;20&quot; height=&quot;20&quot;/&gt;&lt;/p&gt;&lt;/div&gt;
		&lt;hr /&gt;
		&lt;div class='rss_notes'&gt;&lt;p&gt;&lt;span class=&quot;csfoo htmla&quot;&gt;&lt;/span&gt;[&lt;a href='#nh1' id='nb1' class='spip_note' title='Notes 1' rev='footnote'&gt;1&lt;/a&gt;] &lt;span class=&quot;csfoo htmlb&quot;&gt;&lt;/span&gt; Quelle version est install&#233;e ? La r&#233;ponse est l&#224; :
&lt;span class=&quot;csfoo htmla&quot;&gt;&lt;/span&gt;&lt;code class='spip_code' dir='ltr'&gt;server:/var/www/ez/# more kernel/ezinfo/about.php&lt;/code&gt;&lt;span class=&quot;csfoo htmlb&quot;&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span class=&quot;csfoo htmla&quot;&gt;&lt;/span&gt;[&lt;a href='#nh2' id='nb2' class='spip_note' title='Notes 2' rev='footnote'&gt;2&lt;/a&gt;] &lt;span class=&quot;csfoo htmlb&quot;&gt;&lt;/span&gt;Pour m&#233;moire le fichier &#171; settings/override/site.ini.append.php &#187; contient &#233;galement d'autres param&#232;tres de configurations int&#233;ressants comme les &#171; &lt;i&gt;MailSettings&lt;/i&gt; &#187;, le nom et l'URL du site &#171; &lt;i&gt;SiteSettings&lt;/i&gt; &#187;, mais aussi ceux concernant les caches via les blocks de configuration &#171; &lt;i&gt;FileSettings&lt;/i&gt; &#187;, &#171; &lt;i&gt;ContentSettings&lt;/i&gt; &#187;, &#171; &lt;i&gt;OverrideSettings&lt;/i&gt; &#187;, &#171; &lt;i&gt;TemplateSettings&lt;/i&gt; &#187;.&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>Backup Rsync sur SSH</title>
		<link>http://minimalteck.fr/admin/backup-rsync-sur-ssh</link>
		<guid isPermaLink="true">http://minimalteck.fr/admin/backup-rsync-sur-ssh</guid>
		<dc:date>2009-02-06T13:15:25Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>Minimalteck</dc:creator>


		<dc:subject>Howto</dc:subject>
		<dc:subject>Sauvegarde</dc:subject>

		<description>Sur serveur de sauvegarde, g&#233;neration cl&#233;s SSH : #ssh-keygen -t rsa #cat /root/.ssh/id_rsa.pub | ssh root@serveurdistant &quot;test -d .ssh || mkdir -m 0700 .ssh ; cat - &gt;&gt;.ssh/authorized_keys&quot; Param&#233;trage du script : # !/bin/sh export PATH=$PATH :/bin :/usr/bin :/usr/local/bin #CONFIG : CURRENTPWD=&quot;/home/backup1&quot; USER=&quot;root&quot; HOST=&quot;serveurabackuper&quot; SOURCES=&quot;/etc /var/www /home/backupsql /root&quot; EXCLUDES=$CURRENTPWD/excludes BACKUPDIR=$CURRENTPWD/backup DESTINATION=$BACKUPDIR/current (...)

-
&lt;a href="http://minimalteck.fr/admin/" rel="directory"&gt;Admin&lt;/a&gt;

/ 
&lt;a href="http://minimalteck.fr/howto" rel="tag"&gt;Howto&lt;/a&gt;, 
&lt;a href="http://minimalteck.fr/sauvegarde" rel="tag"&gt;Sauvegarde&lt;/a&gt;

		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p&gt;&lt;img src=&quot;http://minimalteck.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; Sur serveur de sauvegarde, &lt;a href='http://minimalteck.fr/admin/ssh-authentification-par-cle' class='spip_in' title=&quot;SSH : Authentification par cl&#233; publique&quot;&gt;g&#233;neration cl&#233;s SSH&lt;/a&gt; :&lt;/p&gt; &lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;#ssh-keygen -t rsa&lt;br /&gt; #cat /root/.ssh/id_rsa.pub | ssh root@serveurdistant &quot;test -d .ssh || mkdir -m 0700 .ssh; cat - &gt;&gt;.ssh/authorized_keys&quot;&lt;/code&gt;&lt;/div&gt; &lt;p&gt;&lt;img src=&quot;http://minimalteck.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; Param&#233;trage du script :&lt;/p&gt; &lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;#!/bin/sh&lt;br /&gt; export PATH=$PATH:/bin:/usr/bin:/usr/local/bin&lt;br /&gt; &lt;br /&gt; #CONFIG :&lt;br /&gt; CURRENTPWD=&quot;/home/backup1&quot;&lt;br /&gt; USER=&quot;root&quot;&lt;br /&gt; HOST=&quot;serveurabackuper&quot;&lt;br /&gt; SOURCES=&quot;/etc /var/www /home/backupsql /root&quot;&lt;br /&gt; EXCLUDES=$CURRENTPWD/excludes&lt;br /&gt; BACKUPDIR=$CURRENTPWD/backup&lt;br /&gt; DESTINATION=$BACKUPDIR/current&lt;br /&gt; ARCHIVES=$BACKUPDIR/archives&lt;br /&gt; CMDLISTPACKAGES=&quot;dpkg -l&quot;&lt;br /&gt; TODAY=`date +%Y-%m-%d`&lt;br /&gt; ROTATEDAYS=7&lt;br /&gt; #END CONFIG&lt;br /&gt; &lt;br /&gt; RSYNCOPTS=&quot;--force --ignore-errors --delete-excluded --exclude-from=$EXCLUDES&lt;br /&gt; --delete --backup --backup-dir=$ARCHIVES/$TODAY -zaRv&quot;&lt;br /&gt; &lt;br /&gt; #Generer la liste des paquets installes sur HOST&lt;br /&gt; ssh $USER@$HOST &quot;$CMDLISTPACKAGES&quot; &gt; $BACKUPDIR/${HOST}_ListPackages.txt&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; if [ ! -d $DESTINATION ]&lt;br /&gt; then&lt;br /&gt; install -d $DESTINATION&lt;br /&gt; fi&lt;br /&gt; if [ ! -d $ARCHIVES/$TODAY ]&lt;br /&gt; then&lt;br /&gt; install -d $ARCHIVES/$TODAY&lt;br /&gt; fi&lt;br /&gt; &lt;br /&gt; touch $ARCHIVES/$TODAY/logfile.log&lt;br /&gt; echo &quot;---------------------------------&quot; &gt;&gt; $ARCHIVES/$TODAY/logfile.log&lt;br /&gt; echo &quot;Demarrage synchro ${HOST}:&quot; &gt;&gt; $ARCHIVES/$TODAY/logfile.log&lt;br /&gt; date &gt;&gt; $ARCHIVES/$TODAY/logfile.log&lt;br /&gt; echo &quot;---------------------------------&quot; &gt;&gt; $ARCHIVES/$TODAY/logfile.log&lt;br /&gt; &lt;br /&gt; rsync -e &quot;ssh -l $USER&quot; $HOST:&quot;$SOURCES&quot; $RSYNCOPTS $DESTINATION &gt;&gt; $ARCHIVES/$TODAY/logfile.log&lt;br /&gt; &lt;br /&gt; echo &quot;Fin synchro:&quot; `date` &gt;&gt; $ARCHIVES/$TODAY/logfile.log&lt;br /&gt; echo &quot;---------------------------------&quot; &gt;&gt; $ARCHIVES/$TODAY/logfile.log&lt;br /&gt; &lt;br /&gt; find $ARCHIVES/ -maxdepth 1 -mtime +$ROTATEDAYS -type d -exec rm -rf {} \;&lt;/code&gt;&lt;/div&gt; &lt;p&gt;&lt;img src=&quot;http://minimalteck.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; Note : le fichier &quot;&lt;i&gt;excludes&lt;/i&gt;&quot; est comporte les &#233;l&#233;menst que l'on ne veut pas sauvgarder sous la forme :&lt;/p&gt; &lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;/root/mesecrets&lt;br /&gt; /root/backups/*.gz&lt;br /&gt; /var/www/siteprod/var/cache/*&lt;br /&gt; /var/www/sitestest&lt;/code&gt;&lt;/div&gt; &lt;p&gt;&lt;img src=&quot;http://minimalteck.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; &lt;a href='http://minimalteck.fr/admin/ahotou-crone-tabe-howto-cron-tab' class='spip_in' title=&quot;Howto cron(tab)&quot;&gt;Mettre en crontab&lt;/a&gt;
&lt;br /&gt;&lt;img src=&quot;http://minimalteck.fr/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; Sauvegarde MySQL c&#244;t&#233; serveur &#224; sauvegarder&#8230;&lt;/p&gt; &lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;#!/bin/sh&lt;br /&gt; export PATH=$PATH:/bin:/usr/bin:/usr/local/bin&lt;br /&gt; #CONFIG&lt;br /&gt; TODAY=`date +%Y-%m-%d`&lt;br /&gt; REP_BASE=/home/backupsql/&lt;br /&gt; REP_BACKUP=$REP_BASE$TODAY&lt;br /&gt; ROTATEDAYS=7&lt;br /&gt; #END CONFIG&lt;br /&gt; &lt;br /&gt; if [ ! -d $REP_BACKUP ]&lt;br /&gt; then&lt;br /&gt; install -d $REP_BACKUP&lt;br /&gt; fi&lt;br /&gt; #SAUVEGARDE BASES MYSQL&lt;br /&gt; for mybase in base1 base2 base3; do&lt;br /&gt; mysqldump -u root -prootpass -h localhost --opt $mybase | gzip -9 &gt; $REP_BACKUP/$mybase.`date +%d-%m-%Y`.sql.gz&lt;br /&gt; done&lt;br /&gt; find $REP_BASE -maxdepth 1 -mtime +$ROTATEDAYS -type d -exec rm -rf {} \;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;
		&lt;div class='rss_ps'&gt;&lt;p&gt;&#224; voir aussi pour paufiner si besoin qd on a + de temps :
&lt;br /&gt;&lt;img src=&quot;http://minimalteck.fr/squelettes-dist/puce.gif&quot; width=&quot;8&quot; height=&quot;11&quot; class=&quot;puce&quot; alt=&quot;-&quot; /&gt; &lt;a href='http://www.pervasive-network.org/SPIP/SSH-bouncing-version-2' class='spip_out' rel='nofollow external'&gt;http://www.pervasive-network.org/SP&#8230;&lt;/a&gt;
&lt;br /&gt;&lt;img src=&quot;http://minimalteck.fr/squelettes-dist/puce.gif&quot; width=&quot;8&quot; height=&quot;11&quot; class=&quot;puce&quot; alt=&quot;-&quot; /&gt; &lt;a href='http://www.sioban.net/article.php/20051007172402438/print' class='spip_out' rel='nofollow external'&gt;http://www.sioban.net/article.php/2&#8230;&lt;/a&gt;
&lt;br /&gt;&lt;img src=&quot;http://minimalteck.fr/squelettes-dist/puce.gif&quot; width=&quot;8&quot; height=&quot;11&quot; class=&quot;puce&quot; alt=&quot;-&quot; /&gt; &lt;a href='http://mazenod.fr/sfCmsBlog/show/id/177/sf_highlight/unix+bsd' class='spip_out' rel='nofollow external'&gt;http://mazenod.fr/sfCmsBlog/show/id&#8230;&lt;/a&gt;
&lt;br /&gt;&lt;img src=&quot;http://minimalteck.fr/squelettes-dist/puce.gif&quot; width=&quot;8&quot; height=&quot;11&quot; class=&quot;puce&quot; alt=&quot;-&quot; /&gt; &lt;a href='http://search.cpan.org/dist/Net-SSH-Perl/' class='spip_out' rel='nofollow external'&gt;http://search.cpan.org/dist/Net-SSH&#8230;&lt;/a&gt;
&lt;br /&gt;&lt;img src=&quot;http://minimalteck.fr/squelettes-dist/puce.gif&quot; width=&quot;8&quot; height=&quot;11&quot; class=&quot;puce&quot; alt=&quot;-&quot; /&gt; &lt;a href='http://www.unices.org/perl/node14.html' class='spip_out' rel='nofollow external'&gt;http://www.unices.org/perl/node14.html&lt;/a&gt;
&lt;br /&gt;&lt;img src=&quot;http://minimalteck.fr/squelettes-dist/puce.gif&quot; width=&quot;8&quot; height=&quot;11&quot; class=&quot;puce&quot; alt=&quot;-&quot; /&gt; &lt;a href='http://kobesearch.cpan.org/htdocs/Net-SSH-Perl/' class='spip_out' rel='nofollow external'&gt;http://kobesearch.cpan.org/htdocs/N&#8230;&lt;/a&gt;
&lt;br /&gt;&lt;img src=&quot;http://minimalteck.fr/squelettes-dist/puce.gif&quot; width=&quot;8&quot; height=&quot;11&quot; class=&quot;puce&quot; alt=&quot;-&quot; /&gt; - &lt;a href='http://www.cyberciti.biz/faq/ssh-passwordless-login-with-keychain-for-scripts/#more-3938' class='spip_out' rel='nofollow external'&gt;http://www.cyberciti.biz/faq/ssh-pa&#8230;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
		</content:encoded>


		

	</item>



</channel>

</rss>
