<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://www.llaumgui.com/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>Le blog de llaumgui - Balise - backup</title>
  <link>http://www.llaumgui.com/</link>
  <atom:link href="http://www.llaumgui.com/feed/tag/backup/rss2" rel="self" type="application/rss+xml"/>
  <description>Linux en général, Fedora en particulier...</description>
  <language>fr</language>
  <pubDate>Sat, 30 Aug 2008 12:36:06 +0200</pubDate>
  <copyright>http://creativecommons.org/licenses/by-nc-nd/2.5/</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Review request for backup-manager</title>
    <link>http://www.llaumgui.com/post/Review-request-for-backup-manager</link>
    <guid isPermaLink="false">urn:md5:9b9a9e49f807b32045bb53fd50883277</guid>
    <pubDate>Tue, 19 Aug 2008 22:29:00 +0200</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Linux</category>
        <category>backup</category><category>backup-manager</category><category>Borsalino</category><category>CentOS</category><category>el5</category><category>Fedora</category><category>Fedora 8</category><category>Fedora 9</category><category>Fedora Core 6</category><category>rpm</category><category>spb-box</category>    
    <description>    &lt;p&gt;J'ai récemment entrepris de migrer les backups de &lt;a href=&quot;http://www.llaumgui.com/tag/Borsalino&quot;&gt;Borsalino&lt;/a&gt; &amp;amp; &lt;a href=&quot;http://www.llaumgui.com/tag/spb-box&quot;&gt;spb-box&lt;/a&gt;, les 2 serveurs que j'administre, sur une nouvelle solution de sauvegarde. En effet, jusqu'à présent j'utilisais l'option &lt;em&gt;mirror&lt;/em&gt; de &lt;a hreflang=&quot;fr&quot; href=&quot;http://fr.wikipedia.org/wiki/Lftp&quot;&gt;lftp&lt;/a&gt; qui est limitée tant en performances qu'en sécurité.&lt;/p&gt;
&lt;p&gt;N'ayant pas de machine sous la main pour monter un serveur &lt;a hreflang=&quot;en&quot; href=&quot;http://backuppc.sourceforge.net/&quot; title=&quot;BackupPC: Open Source Backup to disk&quot;&gt;BackupPC&lt;/a&gt;, j'ai reporté mon choix sur l'utilitaire &lt;a hreflang=&quot;en&quot; href=&quot;http://www.backup-manager.org/&quot; title=&quot;Backup Manager is a command line backup tool for GNU/Linux&quot;&gt;backup-manager&lt;/a&gt; qui permet de faire des sauvegardes incrémentielles en local et de les envoyer par &lt;a hreflang=&quot;fr&quot; href=&quot;http://fr.wikipedia.org/wiki/File_Transfer_Protocol&quot;&gt;FTP&lt;/a&gt; ou &lt;a hreflang=&quot;fr&quot; href=&quot;http://fr.wikipedia.org/wiki/Ssh&quot;&gt;SSH&lt;/a&gt;. backup-manager ne disposant pas de RPMs, la première étape a donc été de construire les RPMs pour mes différentes machines (&lt;strong&gt;make install c'est caca !&lt;/strong&gt;).&lt;/p&gt;
&lt;p&gt;Les RPMs fonctionnant parfaitement, ce sont eux que je vous propose en annexe et que j'ai soumis &lt;a hreflang=&quot;en&quot; href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=459535&quot;&gt;à une demande de revue&lt;/a&gt; afin qu'ils soient intégrés (je l'espère du moins) à &lt;a hreflang=&quot;fr&quot; href=&quot;http://fedoraproject.org/&quot;&gt;Fedora&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Merci à &lt;a hreflang=&quot;fr&quot; href=&quot;http://blog.ulysses.fr/&quot;&gt;Trashy&lt;/a&gt; et &lt;a hreflang=&quot;fr&quot; href=&quot;http://blog.famillecollet.com/&quot;&gt;RemiFedora&lt;/a&gt; ainssi qu'à tout ceux qui sont là sur #fedora-devel-fr@freenode.net pour aider à la création de RPMs...&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Mise à jour le 20/08/08 :&lt;/strong&gt; Correction du SPEC et recompilation des RPMs &lt;a hreflang=&quot;en&quot; href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=459535#c1&quot;&gt;d'après les remarques de Remi&lt;/a&gt;.&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;</description>
    
          <enclosure url="http://www.llaumgui.com/public/rpm/SPECS/backup-manager.spec"
      length="2749" type="text/plain" />
          <enclosure url="http://www.llaumgui.com/public/rpm/RPMS/fc9/noarch/backup-manager-0.7.7-2.fc9.noarch.rpm"
      length="104366" type="application/x-redhat-package-manager" />
          <enclosure url="http://www.llaumgui.com/public/rpm/SRPMS/fc9/backup-manager-0.7.7-2.fc9.src.rpm"
      length="144333" type="application/x-redhat-package-manager" />
          <enclosure url="http://www.llaumgui.com/public/rpm/RPMS/fc6/noarch/backup-manager-0.7.7-2.fc6.noarch.rpm"
      length="104161" type="application/x-redhat-package-manager" />
          <enclosure url="http://www.llaumgui.com/public/rpm/SRPMS/fc6/backup-manager-0.7.7-2.fc6.src.rpm"
      length="144356" type="application/x-redhat-package-manager" />
          <enclosure url="http://www.llaumgui.com/public/rpm/RPMS/fc8/noarch/backup-manager-0.7.7-2.fc8.noarch.rpm"
      length="104172" type="application/x-redhat-package-manager" />
          <enclosure url="http://www.llaumgui.com/public/rpm/SRPMS/fc8/backup-manager-0.7.7-2.fc8.src.rpm"
      length="144356" type="application/x-redhat-package-manager" />
          <enclosure url="http://www.llaumgui.com/public/rpm/RPMS/el5/noarch/backup-manager-0.7.7-2.el5.noarch.rpm"
      length="105988" type="application/x-redhat-package-manager" />
          <enclosure url="http://www.llaumgui.com/public/rpm/SRPMS/el5/backup-manager-0.7.7-2.el5.src.rpm"
      length="144504" type="application/x-redhat-package-manager" />
    
    
          <comments>http://www.llaumgui.com/post/Review-request-for-backup-manager#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/Review-request-for-backup-manager#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/447</wfw:commentRss>
      </item>
    
  <item>
    <title>Script de sauvegarde sur serveur</title>
    <link>http://www.llaumgui.com/post/script-de-sauvegarde-sur-serveur</link>
    <guid isPermaLink="false">urn:md5:8db1eeee7f3ae089bc8cfb85d1121072</guid>
    <pubDate>Thu, 25 Aug 2005 23:38:00 +0000</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Linux</category>
        <category>backup</category><category>Fedora</category><category>script</category><category>serveur</category>    
    <description>&lt;p&gt;Possédant 2 PCs (une station de travail et un serveur, tout deux sous Linux &lt;a href=&quot;http://fedora.redhat.com&quot; hreflang=&quot;us&quot;&gt;Fedora Core&lt;/a&gt;), je désire effectuer une sauvegarde de ma station sur mon serveur.
J'ai donc mi au point un script effectuant la connexion sur le serveur, la sauvegarde ainsi que la déconnexion. Ce script peut être appelé en ligne de commande (nécessite les droits de root) ou utilisé par une tache &lt;a href=&quot;http://fr.wikipedia.org/wiki/Cron&quot; hreflang=&quot;fr&quot; title=&quot;Cron&quot;&gt;Cron&lt;/a&gt;.&lt;/p&gt;    &lt;p&gt;La sauvegarde se fait en 3 étapes :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Etape 1 :&lt;/strong&gt; Connexion au serveur (192.168.1.1) via &lt;em&gt;mount -t smbfs&lt;/em&gt;. En cas d'erreur, le script est arrété.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Etape 2 :&lt;/strong&gt; Création de l'archive&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Etape 3 :&lt;/strong&gt; Déconnexion du serveur (umount).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Je vous livre le script qui demande quelques adaptations en fonction de vos fichiers ou répertoires à sauvegarder.&lt;/p&gt;

&lt;code class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#!/bin/sh&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;###############################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Sauvegarde sur serveur&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# by Guillaume Kulakowski a.k.a LLaumgui &amp;lt;guillaume at llaumgui dot com&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Version &lt;span style=&quot;color: #000000;&quot;&gt;1.0&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;###############################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# This program is &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;free&lt;/span&gt; software; you can redistribute it and/or&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# modify it under the terms of the GNU General Public License&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;as&lt;/span&gt; published by the Free Software Foundation; either version &lt;span style=&quot;color: #000000;&quot;&gt;2&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# of the License, or &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;at your option&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; any later version.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# This program is distributed &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;in&lt;/span&gt; the hope that it will be useful,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. &amp;nbsp;See the&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# GNU General Public License &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;more&lt;/span&gt; details.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# You should have received a copy of the GNU General Public License&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# along with this program; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; not, &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# &amp;nbsp;- &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;write&lt;/span&gt; to the Free Software&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Foundation, Inc., &lt;span style=&quot;color: #000000;&quot;&gt;51&lt;/span&gt; Franklin Street, Fifth Floor, Boston, MA &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;02110&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1301&lt;/span&gt;, USA.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- See http://www.gnu.org/licenses/gpl.html&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;###############################################################################&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;------------------------------------------------------&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;- Sauvegarde système&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;------------------------------------------------------&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Etape 1 : Connection au serveur de backup&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; ! &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mount&lt;/span&gt; -t smbfs -o &lt;span style=&quot;color: #007800;&quot;&gt;ip=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;192.168&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.1&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.1&lt;/span&gt;,&lt;span style=&quot;color: #007800;&quot;&gt;username=&lt;/span&gt;xxx,&lt;span style=&quot;color: #007800;&quot;&gt;password=&lt;/span&gt;xxx //&lt;span style=&quot;color: #000000;&quot;&gt;192.168&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.1&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.1&lt;/span&gt;/serv_backup /mnt/backup/ ;&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;exit&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;------------------------------------------------------&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Etape 2 : Création de l'archive&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;date=&lt;/span&gt;`&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;date&lt;/span&gt; +%m%d%y`;&lt;br /&gt;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;tar&lt;/span&gt; -cf /mnt/backup/backup_&lt;span style=&quot;color: #007800;&quot;&gt;$&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;date&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/span&gt;.&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;tar&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;/etc/&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;/home/llaumgui/&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;/usr/share/themes/&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;/usr/share/icons/&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;/usr/share/pixmaps/&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;------------------------------------------------------&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Etape 3 : Déconnection du serveur&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;umount&lt;/span&gt; /mnt/backup&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;------------------------------------------------------&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;### Fin de la sauvegarde &amp;lt;img src=&amp;quot;&lt;/span&gt;/themes/default/smilies/smile.png&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot; alt=&amp;quot;&lt;/span&gt;:&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot; class=&amp;quot;&lt;/span&gt;smiley&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot; /&amp;gt; ###&amp;quot;&lt;/span&gt;;&lt;/code&gt;</description>
    
    
    
          <comments>http://www.llaumgui.com/post/script-de-sauvegarde-sur-serveur#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/script-de-sauvegarde-sur-serveur#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/38</wfw:commentRss>
      </item>
    
</channel>
</rss>