<?xml version="1.0" encoding="UTF-8" ?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Posteet: liste</title> 
    <link>http://www.posteet.com/</link> 
    <description>Recent posteets posted to Posteet</description>
    <ttl>60</ttl>

    
    <item>
        <title>Pour lister les bases de données sur un serveur</title>
        <link>http://www.posteet.com/view/1693</link>
        <description>
        <![CDATA[<pre>mysql -u root -p
mysql&gt; show databases;</pre> <a href="http://www.posteet.com/tags/liste">[liste]</a>  <a href="http://www.posteet.com/tags/mysql">[mysql]</a> ]]>        </description>
        <dc:creator>cyo</dc:creator>
        <pubDate>Wed, 06 May 2009 11:58:01 +0200</pubDate>

            <category>liste</category>
            <category>mysql</category>
    
    </item>

  
    <item>
        <title>Créer un fichier tar.gz à partir d'un fichier listant un certains nombres de fichiers</title>
        <link>http://www.posteet.com/view/1358</link>
        <description>
        <![CDATA[<pre>while read line; do
  tar -P -c -T - -f archive.tar.gz
done &lt; liste_diff.txt

Le fichier fourni en paramètre contient une liste de fichiers avec pour chacun le chemin absolu sur le serveur + nom du fichier. C’est pourquoi on rajoute l’option -P (--absolute-names) à la commande tar.

ATTENTION : Il faut laisser une ligne vide au début de fichier, sinon le premier fichier de la liste n’est pas pris en compte.

Exemple d’utilisation avec Cygwin sous Windows :
1/ Ouvrir Cygwin.
2/ Se placer dans le répertoire du projet (exemple : C:\www\nom_du_projet\ avec la commande : /cygdrive/c/www/nom_du_projet/).
3/ Mettre la liste des fichiers à archiver dans un fichier texte (ici liste_fichiers.txt).
4/ Exécuter la commande suivante (sur une seule ligne) :
while read line; do tar -P -c -T - -f archive.tar.gz; done &lt; liste_fichiers.txt
5/ Vous devez retrouver votre fichier archive.tar.gz dans le répertoire racine de votre projet.

NB: Pour que le script fonctionne, il faut que les chemins dans le fichier texte soit de la forme suivante :
chemin_www/sous_repertoire/nom_fichier.php

Voir aussi :
http://linuxfr.org/forums/30/21469.html</pre> <a href="http://www.posteet.com/tags/archive">[archive]</a>  <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/compression">[compression]</a>  <a href="http://www.posteet.com/tags/fichier">[fichier]</a>  <a href="http://www.posteet.com/tags/liste">[liste]</a>  <a href="http://www.posteet.com/tags/sauvegarde">[sauvegarde]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>cyo</dc:creator>
        <pubDate>Fri, 07 Nov 2008 15:47:21 +0100</pubDate>

            <category>archive</category>
            <category>bash</category>
            <category>compression</category>
            <category>fichier</category>
            <category>liste</category>
            <category>sauvegarde</category>
            <category>shell</category>
    
    </item>

  
    <item>
        <title>Créer un fichier texte contenant la liste des derniers fichiers modifiés, classés par ordre de dernières modifs</title>
        <link>http://www.posteet.com/view/1203</link>
        <description>
        <![CDATA[<pre>find -type f -mtime -1 -print0 | xargs -0 ls -lt&gt;_dernieres_modifs.txt

On peut également utiliser le paramètre -mmin si on souhaite filtrer sur les 'n' dernières minutes (ex.: -mmin 60 =&gt; dernière heure).</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/fichier">[fichier]</a>  <a href="http://www.posteet.com/tags/liste">[liste]</a>  <a href="http://www.posteet.com/tags/tri">[tri]</a>  <a href="http://www.posteet.com/tags/windows">[windows]</a> ]]>        </description>
        <dc:creator>cyo</dc:creator>
        <pubDate>Tue, 19 Aug 2008 15:09:47 +0200</pubDate>

            <category>bash</category>
            <category>fichier</category>
            <category>liste</category>
            <category>tri</category>
            <category>windows</category>
    
    </item>

  
    <item>
        <title>Lister les fichiers d'un répertoire et de ces sous-répertoires avec le chemin complet</title>
        <link>http://www.posteet.com/view/1186</link>
        <description>
        <![CDATA[<pre>dir *.* /b /s</pre> <a href="http://www.posteet.com/tags/dos">[dos]</a>  <a href="http://www.posteet.com/tags/fichier">[fichier]</a>  <a href="http://www.posteet.com/tags/liste">[liste]</a>  <a href="http://www.posteet.com/tags/windows">[windows]</a> ]]>        </description>
        <dc:creator>cyo</dc:creator>
        <pubDate>Mon, 11 Aug 2008 17:24:01 +0200</pubDate>

            <category>dos</category>
            <category>fichier</category>
            <category>liste</category>
            <category>windows</category>
    
    </item>


</channel>
</rss>
