<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://blog.effraie.org/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
  <title>Effraie@blog - Tag - ubuntu</title>
  <link>http://blog.effraie.org/</link>
  <atom:link href="http://blog.effraie.org/feed/tag/ubuntu/rss2" rel="self" type="application/rss+xml"/>
  <description></description>
  <language>fr</language>
  <pubDate>Thu, 28 Aug 2008 08:21:42 +0200</pubDate>
  <copyright>WTFPL</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Stickers Ubuntu : n'habite plus à l'adresse indiquée</title>
    <link>http://blog.effraie.org/post/2008/08/23/Stickers-Ubuntu-%3A-n-habite-plus-a-l-adresse-indiquee</link>
    <guid isPermaLink="false">urn:md5:eef038ef5fc38b0f879f2d4bda221bf9</guid>
    <pubDate>Sat, 23 Aug 2008 02:40:00 +0200</pubDate>
    <dc:creator>effraie</dc:creator>
        <category>Geek</category><category>Linux</category><category>Planet</category><category>Stickers</category><category>ubuntu</category>    
    <description>    &lt;p&gt;&lt;img src=&quot;http://blog.effraie.org/public/photos/divers/stickers.png&quot; alt=&quot;stickers.png&quot; style=&quot;float:left; margin: 0 1em 1em 0;&quot; title=&quot;stickers.png, oct 2007&quot; /&gt;Voila quelques temps, j'avais distribué les &lt;a href=&quot;http://blog.effraie.org/post/2007/07/30/Stickers-ubuntu&quot;&gt;stickers ubuntu gracieusement offert par system76&lt;/a&gt;. Cette initiative avait eu un franc succés, et j'ai reçu un volume &lt;strong&gt;considérable&lt;/strong&gt; de courrier, aidé en cela par la diffusion de cette offre sur quelques autre sites.Tant mieux, c'était le but de l'opération. &lt;br /&gt; &lt;br /&gt;&lt;/p&gt;


&lt;p&gt;Rapidement, je suis arrivé à cours de stickers, et  j'avais alors annoncé que les &lt;a href=&quot;http://blog.effraie.org/post/2007/10/14/A-propos-des-stickers-Ubuntu&quot; hreflang=&quot;fr&quot;&gt;commandes étaient fermées provisoirement&lt;/a&gt;. Pour des raisons que j'ignore, system76 n'a pas réussit à m'en faire parvenir de nouveau (mais ce n'est sans doute pas définitif, rassurez vous!), et depuis, je me suis d'ailleurs désengagé de l'administration d'ubuntu-fr. &lt;br /&gt; &lt;br /&gt;&lt;/p&gt;


&lt;p&gt;Je continu encore aujourd'hui a recevoir &lt;em&gt;beaucoup&lt;/em&gt; de demandes de stickers, que je ne peux pas honorer, de fait. Cependant, j'avais conservé l'étiquette &lt;strong&gt;ubuntu stickers&lt;/strong&gt; sur la boite au lettre, pour que les courriers ne soit pas perdu, et honorer les demandes quand nous aurions a nouveau du stock. &lt;br /&gt; &lt;br /&gt;&lt;/p&gt;


&lt;p&gt;Aujourd'hui, je ne peux plus décemment gérer l'afflux de courriers, qui s'accumulent sans réponse. Je vais donc enlever cette étiquette sur ma boite au lettre, et c'est pour vous avertir une nouvelle fois qu'il est inutile de continuer à m'adresser ces courriers: &lt;strong&gt;vos timbres et enveloppes seraient perdues!&lt;/strong&gt;  &lt;br /&gt; &lt;br /&gt;&lt;/p&gt;


&lt;p&gt;Bien entendu, les demande que j'ai déjà reçus seront honorées dés que ce sera possible (bientôt, on l'espère!) et il est probabble qu'a moyen terme, des commandes puissent a nouveau être ouvertes. &lt;br /&gt; &lt;br /&gt;&lt;/p&gt;


&lt;p&gt;Pour éviter qu'un trop grand nombres de gens croient que cette offre tiens toujours, je remercie &lt;a href=&quot;http://lafonjm.free.fr/blog/index.php?post/2007/07/30/Des-stickers-Ubuntu-gratuits&quot; hreflang=&quot;fr&quot;&gt;Jean-Marie&lt;/a&gt;, &lt;a href=&quot;http://www.korben.info/des-stickers-ubuntu-a-coller-sur-votre-pc-et-gratuitement-en-plus.html&quot; hreflang=&quot;fr&quot;&gt;Korben&lt;/a&gt;, &lt;a href=&quot;http://www.plugeek.com/autres/stickers-ubuntu-gratuit-222.html&quot; hreflang=&quot;fr&quot;&gt;PluGeek&lt;/a&gt; et &lt;a href=&quot;http://smashou.info/dotclear2/index.php?post/31/07/2007/Commander-des-stickers-Ubuntu&quot; hreflang=&quot;fr&quot;&gt;Smashou&lt;/a&gt; de bien vouloir mettre à jour leurs annonces.&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.effraie.org/post/2008/08/23/Stickers-Ubuntu-%3A-n-habite-plus-a-l-adresse-indiquee#comment-form</comments>
      <wfw:comment>http://blog.effraie.org/post/2008/08/23/Stickers-Ubuntu-%3A-n-habite-plus-a-l-adresse-indiquee#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.effraie.org/feed/rss2/comments/183</wfw:commentRss>
      </item>
    
  <item>
    <title>Calibration d'écran, profil ICC et gestion des couleurs sous Ubuntu</title>
    <link>http://blog.effraie.org/post/2008/04/08/Gestion-des-couleurs-sous-Ubuntu</link>
    <guid isPermaLink="false">urn:md5:c7ec480bbda5cef0394e81cabd95c215</guid>
    <pubDate>Wed, 09 Apr 2008 08:54:00 +0200</pubDate>
    <dc:creator>effraie</dc:creator>
        <category>Calibration</category><category>ICC</category><category>Liberté</category><category>Linux</category><category>Logiciel</category><category>Photo</category><category>Planet</category><category>Profil</category><category>Screen</category><category>ubuntu</category><category>Ubuntu</category><category>WM</category><category>Écran</category>    
    <description>    &lt;p&gt;Ceux d'entre vous qui &lt;em&gt;suivent&lt;/em&gt; savent que je m'intéressent à la &lt;a href=&quot;http://pics.effraie.org/&quot; hreflang=&quot;fr&quot;&gt;photo numérique&lt;/a&gt;, et en particulier à sa pratique sur notre plate-forme préférée: GNU/Linux. &lt;br /&gt; &lt;br /&gt;&lt;/p&gt;


&lt;p&gt;Mon dernier billet important sur le sujet, &lt;a href=&quot;http://blog.effraie.org/post/2007/07/30/Flux-de-travail-numerique-pour-le-photographe-sous-Ubuntu&quot; hreflang=&quot;fr&quot;&gt;Flux de travail numérique pour le photographe sous Ubuntu&lt;/a&gt;, tentait de montrer comment il était possible d'utiliser des outils, si ce n'est professionnels, au moins des très haut niveau pour gérer son &lt;em&gt;workflow&lt;/em&gt; sous ubuntu. &lt;br /&gt;
Cependant, la question de la calibration de l'écran, et donc de la gestion des couleurs semblait poser quelques problèmes, et les solutions que j'avançais à l'époque n'étaient que des bricolages. &lt;br /&gt; &lt;br /&gt;&lt;/p&gt;


&lt;p&gt;Je ferais prochainement un billet (à jour) plus extensif sur la gestion de mon flux, depuis la prise de vue jusqu'à la publication web et/ou l'impression, mais je n'en ai pas le temps ni le courage immédiatement. Je vais donc me contenter d'expliquer la démarche que j'ai suivie pour calibrer mon écran, entièrement sous GNU/Linux (Ubuntu Hardy Heron, mais ça devrait être facilement transposable sous n'importe quelle distribution), parce que j'imagine que ça intéressera fortement un certains nombre...&lt;/p&gt;


&lt;h2&gt;Pré-requis&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.argyllcms.com/&quot; hreflang=&quot;en&quot;&gt;Argyll Color Management System&lt;/a&gt;&amp;nbsp;: Ce logiciel, bien qu' austère et peu engageant, est aujourd'hui ce qui se fait de mieux pour la gestion des couleurs. le site web est explicite: il s'agit d'une collection de codes sources, qui, une fois compilés, fournissent des outils en lignes de commandes permettant, de façon quasi exhaustive, de calibrer toute une chaîne graphique.&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;Une sonde colorimétrique reconnue par Argyll. La liste du matériel supporté est disponible &lt;a href=&quot;http://www.argyllcms.com/doc8/ArgyllDoc.html&quot; hreflang=&quot;en&quot;&gt;ici&lt;/a&gt;. Je me suis servi de la version 0.70 Beta 8, pour profiter du support de la sonde Spyder 2 de colorvision, un des matériel les plus répandu dans le grand public, et surtout, un des moins chers (j'ai acheté la mienne 70€ d'occasion). Inutile de payer plus cher une version «pro», seul le logiciel change, et seule la sonde (matériel) nous sera utile sous GNU/Linux&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;Un écran...&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;Procédure&lt;/h2&gt;


&lt;h4&gt;Installation de Argyll 0.70 Beta 8&lt;/h4&gt;


&lt;p&gt;Argyll est un logiciel non-présent dans les dépôt, et d'usage très spécifique.. inutile de l'installer si vous n'en avez pas vraiment besoin, vous risqueriez d'abîmer quelque chose sur votre beau système.&lt;/p&gt;


&lt;p&gt;J'ai choisi d'utiliser la version précompilée de Argyll: inutile de se compliquer la tâche pour un logiciel si spécifique. L'installation est donc très simple: il suffit de télécharger &lt;a href=&quot;http://www.argyllcms.com/argyllV0.70Beta8_linux_x86_bin.zip&quot; hreflang=&quot;en&quot;&gt;cette archive&lt;/a&gt;, de l'extraire, et de placer le contenu de son répertoire bin/ dans votre $PATH (personnellement, j'ai choisi &lt;code&gt;/home/effraie/bin&lt;/code&gt; , mais libre à vous de faire autre chose, &lt;code&gt;/usr/local/bin&lt;/code&gt; étant par exemple tout indiqué.&lt;/p&gt;


&lt;p&gt;Le firmware de la sonde Spyder2 étant propriétaire, il n'est pas inclus dans Argyll, et il vous faudra l'extraire. c'est trés simple, et ça se fait en 2 étapes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;introduire le cd d'installation de la sonde dans votre lecteur,&lt;/li&gt;
&lt;li&gt;tapez simplement &lt;code&gt;spyd2en&lt;/code&gt; dans une console pour extraire le firmware et l'injecter dans Argyll&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Votre sonde Spyder2 devrait désormais être utilisable!
Passons donc aux choses sérieuse, la calibration (et la caractérisation) de l'écran proprement dit.
&lt;br /&gt; &lt;br /&gt;
&lt;a href=&quot;http://blog.effraie.org/public/photos/2008_04_06_15_43_16-DSC_3146-web.jpg&quot;&gt;&lt;img src=&quot;http://blog.effraie.org/public/photos/.2008_04_06_15_43_16-DSC_3146-web_s.jpg&quot; alt=&quot;spyder2&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/a&gt;
&lt;br /&gt; &lt;br /&gt;
Argyll est un outil en ligne de commande, mais pas si compliqué à utiliser, finalement. Enfin, au moins quand, comme moi, on se contente de l'utiliser pour un usage basique, parce qu'il embarque tout un tas d'outils dont je ne saurait que faire...
&lt;br /&gt; &lt;br /&gt;
Voici donc les étapes que je suivie, avec (quelques) détails:
&lt;br /&gt; &lt;br /&gt;
Je me suis placé dans les conditions de luminosités qui sont celles dans lesquelles je travaille mes images (généralement), et j'ai fait le vide sur mon Desktop. Ensuite: &lt;br /&gt; &lt;br /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Branchez la sonde a une prise USB,&lt;/li&gt;
&lt;li&gt;&lt;code&gt;sudo chmod 777 -R /dev/bus/usb&lt;/code&gt; pour avoir accés, comme simple utilisateur, au bus USB. (il y a sans doute plus élégant, mais là n'est pas le propos),&lt;/li&gt;
&lt;li&gt;&lt;code&gt;dispcal -v -qm -yl mon_profil&lt;/code&gt; &lt;strong&gt;&lt;em&gt;(-v pour le mode verbeux, -qm pour une qualité moyenne, -yl pour un écran LCD (-yc pour un CRT) et mon_profil, pour le nom a donner au profil (et aux fichiers intermédiaires)&lt;/em&gt;&lt;/strong&gt;. Un patch noir appariait a l'écran, sur lequel placer la sonde, et vous devriez avoir cet affichage dans votre console:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;
Setting up the instrument
Instrument Type:   Spyder 2
Serial Number:     00617511
Hardwar version:   0x0307
Place instrument on test window.
Hit Esc, ^C or Q to give up, any other key to continue:

&lt;/pre&gt;

&lt;ul&gt;
&lt;li&gt;Tapez donc entrée après avoir placé la sonde, et vous voila avec le menu suivant:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;
Display adjustment menu:
Press 1 .. 7
1) Black level (CRT: Brightness)
2) White point (Color temperature, R,G,B, Gain)
3) White level (CRT: Contrast, LCD: Brightness)
4) Black point (R,G,B, Offset)
5) Check all
6) Continue on to calibration
7) Exit

&lt;/pre&gt;

&lt;p&gt;Ayant un écran cheap de portable, je suis passé directement à l'étape 6, mais si vous avez des contrôle manuels sur votre écrans, passer par les autres étapes n'est sans doute pas un luxe!&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Dispcal va afficher et mesurer toute une série de patch de différente couleur, et produire un fichier &lt;em&gt;mon_profil.cal&lt;/em&gt;. c'est un peu long, c'est normal.&lt;/li&gt;
&lt;li&gt;On tape &lt;code&gt;targen -v -d3 -f500 mon_profil&lt;/code&gt;, ce qui va générer un fichier &lt;em&gt;mon_profil.ti1&lt;/em&gt; contenant les nouveau patches à mesurer. Cette étape est très rapide.&lt;/li&gt;
&lt;li&gt;On va maintenant utiliser la commande &lt;code&gt;dispread -v -yl -k mon_profil.cal mon_profil&lt;/code&gt; qui va produire un fichier &lt;em&gt;mon_profil.ti3&lt;/em&gt;. Cette étape est assez longue également.&lt;/li&gt;
&lt;li&gt;On peut désormais retirer la sonde l'écran, et générer le profil lui même: &lt;code&gt;profile -v -A &quot;Fabricant de l'écran&quot; -M &quot;modèle de l'écran&quot; -D &quot;la date&quot; -qm -as mon_profil&lt;/code&gt; qui va produire un (précieux!) fichier &lt;em&gt;mon_profil.icc&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;On charge le profil dans X avec la commande &lt;code&gt;dispwin /chemin/vers/mon_profil.icc&lt;/code&gt; (et on le décharge avec &lt;code&gt;dispwin -c&lt;/code&gt; mais ça n'a aucun intérêt &lt;img src=&quot;/themes/default/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt; ). Votre écran devrait prendre une surprenante teinte jaunâtre, (c'est normal mais moche). Votre écran est désormais calibré, et vous n'avez plus qu'à configurer correctement vos application (supportant les couleurs gérées, comme bibble, ou le dernier gimp). Attention, si vous utilisez un économiseur d'écran, celui ci déchargera le profil. Pensez à le recharger (ou à désactiver l'économiseur d'écran).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;br /&gt; &lt;br /&gt;
Mille merci à &lt;a href=&quot;http://jcornuz.wordpress.com&quot; hreflang=&quot;en&quot;&gt;Jcornuz&lt;/a&gt; pour ses précieuse informations, et bienvenu dans le monde merveilleux des couleurs gérées sous GNU/Linux!&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.effraie.org/post/2008/04/08/Gestion-des-couleurs-sous-Ubuntu#comment-form</comments>
      <wfw:comment>http://blog.effraie.org/post/2008/04/08/Gestion-des-couleurs-sous-Ubuntu#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.effraie.org/feed/rss2/comments/156</wfw:commentRss>
      </item>
    
  <item>
    <title>Sauvegardes extensives</title>
    <link>http://blog.effraie.org/post/2007/12/08/Sauvegardes-extensives</link>
    <guid isPermaLink="false">urn:md5:f7c2c42a8f8672d45bc511e093c046b9</guid>
    <pubDate>Sat, 08 Dec 2007 16:35:00 +0100</pubDate>
    <dc:creator>effraie</dc:creator>
        <category>Geek</category><category>Linux</category><category>MaVie</category><category>Planet</category><category>Sauvegarde</category><category>Serveur</category><category>ubuntu</category><category>Web</category>    
    <description>    &lt;p&gt;Effraie.org héberge pas mal de sites, et la question des sauvegardes est devenue cruciale.
&lt;br /&gt; Bien sur, je pourrais renvoyer les utilisateur-ices à leur responsabilités, et leur demander de faire leurs propres sauvegardes. Cela dit, rien ne dit qu'elles/ils les fassent régulièrement, ni qu'ils sachent comment sauvegarder une base de données.
&lt;br /&gt; &lt;br /&gt;
Je me suis donc penché sur la question, et j'ai amélioré mon rsync quotidien pour obtenir un système qui me convient mieux,   &lt;br /&gt; &lt;br /&gt;
&lt;em&gt;Pour assurer que les données seront à l'abri en cas de crash des disques durs internes, mon répertoire backups/ est situé sur un disque usb externe. Prochainement, je cherche également à automatiser une sauvegarde de ce répertoire sur un serveur distant &lt;/em&gt;
&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;Sauvegardes des bases de données&lt;/h2&gt;


&lt;p&gt;J'utilise, suivant les conseils avisé d'un copain, le script autoMYSQLBackup.sh qu'on trouve &lt;a href=&quot;http://sourceforge.net/projects/automysqlbackup/&quot; hreflang=&quot;en&quot;&gt;ici&lt;/a&gt;. Après configuration de quelques variables, le script est opérationnel, et il ne vous reste qu'a le lier dans /etc/cron.daily/ pour obtenir une sauvegarde automatisée de chacune de vos bases. Le script conserve les backups des derniers 7 jours, une par semaine pendant un mois, et une par mois indéfiniment. &lt;br /&gt;
Au final, cela me permet de conserver une trace des données sur le long terme, sans pour autant user une espace disque démesuré, dans backups/sql.&lt;/p&gt;


&lt;h2&gt;Sauvegardes des données:&lt;/h2&gt;


&lt;p&gt;Pendant longtemps, je me suis contenté d'utiliser rsync pour sauvegarder les données du serveur. Cependant, je souhaitais bénéficier, comme pour les bases de données, de la possibilité de restaurer une sauvegarde plus ancienne.
Pour cela, j'ai utilisé des outils standards, &lt;strong&gt;rsync&lt;/strong&gt;, &lt;strong&gt;cp&lt;/strong&gt;, &lt;strong&gt;rm&lt;/strong&gt;,  &lt;strong&gt;date&lt;/strong&gt;, &lt;strong&gt;find&lt;/strong&gt; et &lt;strong&gt;crontab&lt;/strong&gt;. &lt;br /&gt; &lt;br /&gt;
Le fonctionnement est simple:&lt;/p&gt;


&lt;h3&gt;sauvegarde principale:&lt;/h3&gt;

&lt;p&gt;Chaque nuit, à 2h30, je sauvegarde l'ensemble des données que je veux pouvoir restaurer dans un répertoire backups/main, avec le &quot;mini script&quot; suivant, qui synchronise la racine du serveur avec ma sauvegarde: &lt;br /&gt;&lt;/p&gt;
&lt;pre class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#!/bin/sh&lt;/span&gt;
rsync -azh  --&lt;span style=&quot;color: #007800;&quot;&gt;exclude=&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;pattern&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;à&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;ne&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;pas&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;sauver --&lt;span style=&quot;color: #007800;&quot;&gt;exclude=&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;dev --&lt;span style=&quot;color: #007800;&quot;&gt;exclude=&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;proc --&lt;span style=&quot;color: #007800;&quot;&gt;exclude=&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;tmp --&lt;span style=&quot;color: #007800;&quot;&gt;exclude=&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;sys   --delete-after --delete-excluded --stats &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;chemin&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;vers&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;backups&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;main&lt;/pre&gt;


&lt;p&gt;&lt;br /&gt; &lt;br /&gt;
et cette ligne dans la crontab de root: &lt;br /&gt;&lt;/p&gt;
&lt;pre class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;30&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;02&lt;/span&gt;  &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;*&lt;/span&gt;  &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;*&lt;/span&gt;  &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;*&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;chemin&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;vers&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;le&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;script&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;main_backup &lt;span style=&quot;color: #000000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;1&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; mail votre&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;@&lt;/span&gt;email.tld -s &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;[Rsync] rapport du `date +%A&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\ &lt;/span&gt;%d&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\ &lt;/span&gt;%B&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\ &lt;/span&gt;%Y`&amp;quot;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt; &lt;br /&gt;
Je reçois ainsi chaque jour un rapport statistique sur la synchronisation, de cette forme: &lt;br /&gt;&lt;/p&gt;
&lt;pre&gt;

Number of files: 208552
Number of files transferred: 1038
Total file size: 8.23G bytes
Total transferred file size: 354.84M bytes
Literal data: 354.86M bytes
Matched data: 0 bytes
File list size: 6230145
File list generation time: 98.647 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 70.71M
Total bytes received: 24.00K

sent 70.71M bytes  received 24.00K bytes  344.18K bytes/sec
total size is 8.23G  speedup is 116.42

&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt; &lt;br /&gt;
En cas de problème, le mail contient la sortie d'erreur de la commande. &lt;br /&gt; &lt;br /&gt;&lt;/p&gt;


&lt;h3&gt;Journalisation des sauvegardes&lt;/h3&gt;

&lt;p&gt;Pour pouvoir restaurer des sauvegardes plus anciennes, ou des fichiers effacés il y a plusieurs jours sur le serveur (et donc absent de backups/main), j'utilise trois petits scripts simplistes, qui, associés à une ligne adéquate dans la crontab de root, me permettent de conserver l'ensemble des sauvegardes des 7 derniers jours, une sauvegarde par semaine pendant un mois, et une sauvegarde par mois pendant 6 mois. &lt;br /&gt; &lt;br /&gt;&lt;/p&gt;


&lt;blockquote&gt;&lt;p&gt;
&lt;img src=&quot;http://blog.effraie.org/public/icones/attention.png&quot; alt=&quot;attention.png&quot; style=&quot;float:left; margin: 0 1em 1em 0;&quot; /&gt; &lt;strong&gt;Note ajoutée à la suite de quiproquo dans les commentaires&lt;/strong&gt; &lt;br /&gt;
Le systéme de journalisation/rotation des backups utilise l'option -l de cp, pour créer des hardlinks au lieu de recopier les fichiers, dans tt les cas ou le fichier n'a pas été modifié. C'est le moyen de n'utiliser que l'espace disque minimum requis. Compresser les données dans une archive ferait perdre cet avantage, et utiliserait, finalement, &lt;strong&gt;plus&lt;/strong&gt; d'espace disque.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;


&lt;p&gt;Voici les scripts et les entrées dans la crontab qui vont avec:
&lt;br /&gt; &lt;br /&gt;
&lt;strong&gt;daily_backup&lt;/strong&gt; &lt;br /&gt; &lt;br /&gt;
le script: &lt;br /&gt;&lt;/p&gt;
&lt;pre class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#!/bin/sh&lt;/span&gt;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;find&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;chemin&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;vers&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;backups&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;timed&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;daily&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/*&lt;/span&gt; -ctime &lt;span style=&quot;color: #000000;&quot;&gt;+7&lt;/span&gt; -&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;exec&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;rm&lt;/span&gt; -rf &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt; \;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;cp&lt;/span&gt; -al &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;chemin&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;vers&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;backups&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;main &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;chemin&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;vers&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;backups&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;timed&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;daily&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;`&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;date&lt;/span&gt; +&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;%&lt;/span&gt;F` &lt;span style=&quot;color: #000000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;dev&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;null;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt; &lt;br /&gt;
L'entrée dans la crontab:&lt;/p&gt;
&lt;pre class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;30&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;03&lt;/span&gt;  &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;*&lt;/span&gt;  &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;*&lt;/span&gt;  &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;*&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;home&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;effraie&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;scripts&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;daily_backup&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt; &lt;br /&gt;
&lt;strong&gt;weekly_backup&lt;/strong&gt; &lt;br /&gt; &lt;br /&gt;
le script: &lt;br /&gt;&lt;/p&gt;
&lt;pre class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#!/bin/sh&lt;/span&gt;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;find&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;chemin&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;vers&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;backups&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;timed&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;weekly&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/*&lt;/span&gt; -ctime &lt;span style=&quot;color: #000000;&quot;&gt;+33&lt;/span&gt; -&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;exec&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;rm&lt;/span&gt; -rf &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt; \;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;cp&lt;/span&gt; -al &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;chemin&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;vers&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;backups&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;main &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;chemin&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;vers&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;backups&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;timed&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;weekly&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;`&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;date&lt;/span&gt; +&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;%&lt;/span&gt;U_&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;%&lt;/span&gt;F` &lt;span style=&quot;color: #000000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;dev&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;null;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt; &lt;br /&gt;
L'entrée dans la crontab:&lt;/p&gt;
&lt;pre class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;40&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;03&lt;/span&gt;  &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;*&lt;/span&gt;  &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;*&lt;/span&gt;  &lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;home&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;effraie&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;scripts&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;weekly_backup&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt; &lt;br /&gt;
&lt;strong&gt;monthly_backup&lt;/strong&gt; &lt;br /&gt; &lt;br /&gt;
Le script:&lt;/p&gt;
&lt;pre class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#!/bin/sh&lt;/span&gt;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;find&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;chemin&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;vers&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;backups&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;timed&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;monthly&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/*&lt;/span&gt; -ctime &lt;span style=&quot;color: #000000;&quot;&gt;+183&lt;/span&gt; -&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;exec&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;rm&lt;/span&gt; -rf &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt; \;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;cp&lt;/span&gt; -al &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;chemin&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;vers&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;backups&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;main &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;mnt&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usb-data&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;backups&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;timed&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;monthly&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;`&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;date&lt;/span&gt; +&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;%&lt;/span&gt;m-&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;%&lt;/span&gt;Y` &lt;span style=&quot;color: #000000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;dev&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;null;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt; &lt;br /&gt;
L'entrée dans la crontab:&lt;/p&gt;
&lt;pre class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;50&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;03&lt;/span&gt;  &lt;span style=&quot;color: #000000;&quot;&gt;1&lt;/span&gt;  &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;*&lt;/span&gt;  &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;*&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;home&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;effraie&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;scripts&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;monthly_backup&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt; &lt;br /&gt;
Avec ça, je pense être habillé pour l'hiver! Cela dit, toute suggestion d'amélioration est la bienvenue.
&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.effraie.org/post/2007/12/08/Sauvegardes-extensives#comment-form</comments>
      <wfw:comment>http://blog.effraie.org/post/2007/12/08/Sauvegardes-extensives#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.effraie.org/feed/rss2/comments/138</wfw:commentRss>
      </item>
    
</channel>
</rss>