<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=1050281&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / [Résolu] problème de recursion avec tar]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=1050281</link>
		<description><![CDATA[Les sujets les plus récents dans [Résolu] problème de recursion avec tar.]]></description>
		<lastBuildDate>Mon, 08 Oct 2012 10:34:34 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] problème de recursion avec tar]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11046801#p11046801</link>
			<description><![CDATA[<div class="quotebox"><cite>zoulbiba #28 a écrit&#160;:</cite><blockquote><div><p>En ajoutant le / cette commande marche parfaitement</p></div></blockquote></div><p>Je ne comprends pas pourquoi le comportement est différent.</p><p><span class="bbu">Remarque</span> :<br />Il est préférable d&#039;utiliser</p><div class="codebox"><pre><code>find commun/ -iregex &#039;.*\.\(txt\|xls\|doc\|pdf\)&#039;</code></pre></div><p>plutôt que</p><div class="codebox"><pre><code>find commun/ -iregex &#039;.*.\(txt\|xls\|doc\|pdf\)&#039;</code></pre></div><p>Avec la 2ème forme, le fichier <strong>il_n_y_a_pas_de_point_avant_l_extensiondoc</strong> sera pris en compte.</p>]]></description>
			<author><![CDATA[dummy@example.com (pingouinux)]]></author>
			<pubDate>Mon, 08 Oct 2012 10:34:34 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11046801#p11046801</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] problème de recursion avec tar]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11045991#p11045991</link>
			<description><![CDATA[<p>La commande suivante ne me trouve rien:</p><div class="codebox"><pre><code>find commun -iregex &#039;.*.\(txt\|xls\|doc\|pdf\)&#039;</code></pre></div><p>&#160; </p><br /><p>En ajoutant le <strong>/</strong> cette commande marche parfaitement même en automatisant via CROTNAB.</p><div class="codebox"><pre><code>find commun/ -iregex &#039;.*.\(txt\|xls\|doc\|pdf\)&#039;</code></pre></div><br /><br /><p>Encore merci pour vôtre aide, tous mes problème sont enfin résolu. <br />enfin pour l&#039;instant,<br />a bientôt.<br />Zoubi</p>]]></description>
			<author><![CDATA[dummy@example.com (zoulbiba)]]></author>
			<pubDate>Mon, 08 Oct 2012 09:09:14 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11045991#p11045991</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] problème de recursion avec tar]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11010211#p11010211</link>
			<description><![CDATA[<p>que touve find ?<br />afficher dans le script</p><div class="codebox"><pre><code> find commun -iregex &#039;.*.\(txt\|xls\|doc\|pdf\)&#039; </code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (credenhill)]]></author>
			<pubDate>Fri, 05 Oct 2012 07:32:14 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11010211#p11010211</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] problème de recursion avec tar]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10998901#p10998901</link>
			<description><![CDATA[<p>voici le log après petite correction d&#039;un lien symbolique un peu bancale :<br />mais toujours rien dans mon fichier tgz</p><p>++ date +%A<br />+ DATE=Thursday<br />+ DH=/home/localsave/donnees_heberg<br />+ DA=/home/localsave/donnees_accueil<br />+ DC=/home/localsave/commun<br />+ SH=/home/localsave/sauve_heberg<br />+ SA=/home/localsave/sauve_accueil<br />+ SC=/home/localsave/sauve_commun<br />+ cd /home/localsave/commun/..<br />+ find commun -iregex &#039;.*.\(txt\|xls\|doc\|pdf\)&#039;<br />+ tar -T - -zcvf /home/localsave/sauve_commun/commun_Thursday.tg</p>]]></description>
			<author><![CDATA[dummy@example.com (zoulbiba)]]></author>
			<pubDate>Thu, 04 Oct 2012 09:29:49 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10998901#p10998901</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] problème de recursion avec tar]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10989941#p10989941</link>
			<description><![CDATA[<p>Bonjour,<br />D&#039;après les sorties du #24, il semble manquer la première de ces 2 lignes :</p><div class="codebox"><pre><code>                cd $DC/.. 
                find commun -iregex &#039;.*.\(txt\|xls\|doc\|pdf\)&#039; | tar -T - -zcvf $SC/commun_$DATE.tgz </code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (pingouinux)]]></author>
			<pubDate>Wed, 03 Oct 2012 15:13:34 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10989941#p10989941</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] problème de recursion avec tar]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10989441#p10989441</link>
			<description><![CDATA[<p>Le contenu du fichier log après ajout de set -x :</p><br /><p>++ date +%A<br />+ DATE=Wednesday<br />+ DC=/home/localsave/commun<br />+ SC=/home/localsave/sauve_commun<br />+ find commun -iregex &#039;.*.\(txt\|xls\|doc\|pdf\)&#039;<br />+ tar -T - -zcvf /home/localsave/sauve_commun/commun_Wednesday.tgz</p><p>J&#039;avais éliminer toutes les parties du script qui ne m’intéressent pas afin de limiter lse problèmes.<br />Au vu du contenu du log je suppose que CRON ne gére pas la commande ( find commun -iregex &#039;.*.\(txt\|xls\|doc\|pdf\)&#039; | tar -T - -zcvf $SC/commun_$DATE.tgz ) comme il faudrait.</p>]]></description>
			<author><![CDATA[dummy@example.com (zoulbiba)]]></author>
			<pubDate>Wed, 03 Oct 2012 14:23:12 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10989441#p10989441</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] problème de recursion avec tar]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10989251#p10989251</link>
			<description><![CDATA[<p>tout les tar ayant l&#039;option v, log ne devrait pas être vide<br />place en 2ème ligne du script</p><div class="codebox"><pre><code>set -x</code></pre></div><p>pour voir ce qu&#039;il fait</p>]]></description>
			<author><![CDATA[dummy@example.com (credenhill)]]></author>
			<pubDate>Wed, 03 Oct 2012 14:03:57 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10989251#p10989251</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] problème de recursion avec tar]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10988801#p10988801</link>
			<description><![CDATA[<p>Bonjour Credenhill j&#039;ai rajouter &gt;&gt; /tmp/log 2&gt;&amp;1 <br />Lorsque je regarde le fichier log il n&#039;y a rien. Il a bien été créer mais il est vide.<br />j&#039;ai l&#039;impression que seule la fin de la commande&#160; est prise en compte par la CRONTAB car le fichier commun_$DATE.tgz est bien crée&#160; mais il est vide.</p>]]></description>
			<author><![CDATA[dummy@example.com (zoulbiba)]]></author>
			<pubDate>Wed, 03 Oct 2012 13:34:19 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10988801#p10988801</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] problème de recursion avec tar]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10973821#p10973821</link>
			<description><![CDATA[<p>capturer messages et erreurs</p><div class="codebox"><pre><code>00 23 * * 1-5 /home/localsave/bin/sauvegarde_local.sh residence &gt;&gt; /tmp/log 2&gt;&amp;1</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (credenhill)]]></author>
			<pubDate>Tue, 02 Oct 2012 08:58:45 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10973821#p10973821</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] problème de recursion avec tar]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10973241#p10973241</link>
			<description><![CDATA[<p>voici le crontab :</p><div class="codebox"><pre><code>00 23 * * 1-5 /home/localsave/bin/sauvegarde_local.sh residence</code></pre></div><p>et voici le script</p><div class="codebox"><pre class="vscroll"><code>#!/bin/bash 

DATE=`date +%A` 
#Indique le jour de la date actuelle 

DH=/home/localsave/donnees_heberg 
DA=/home/localsave/donnees_accueil 
#DG=/home/localsave/donnees_garone 
DC=/home/localsave/commun 
#chemins des donnees/repertoires a sauvegarder 
SH=/home/localsave/sauve_heberg 
SA=/home/localsave/sauve_accueil 
#SG=/home/localsave/sauve_garone 
SC=/home/localsave/sauve_commun 
#chemins ou les donnees/repertoire seront sauvegardees et stockees

	case $1 in 

	        residence) 

		#Serveurs residences 

		############# ACCUEIL #############     
	        cd $DA 
	        tar zcvf $SA/accueil_$DATE.tgz * 
	         

		############# HEBERG #############   
	        cd $DH 
	        tar zcvf $SH/heberg_$DATE.tgz * 
	         

    		############# COMMUN #############   
	        cd $DC/.. 
	        find commun -iregex &#039;.*.\(txt\|xls\|doc\|pdf\)&#039; | tar -T - -zcvf $SC/commun_$DATE.tgz
        	        
                ;; 

       	        restaurant) 

		#Serveurs restaurants 

		############# GARONE #############      
       	        #cd $DG 
	        #tar zcvf $SG/garone_$DATE.tgz * 
		 

	        ############# COMMUN #############   
                cd $DC/.. 
                find commun -iregex &#039;.*.\(txt\|xls\|doc\|pdf\)&#039; | tar -T - -zcvf $SC/commun_$DATE.tgz 
		
		;;
	esac</code></pre></div><p><em>edit modo : merci d&#039;utiliser les balises [ code ]</em></p>]]></description>
			<author><![CDATA[dummy@example.com (zoulbiba)]]></author>
			<pubDate>Tue, 02 Oct 2012 07:39:45 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10973241#p10973241</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] problème de recursion avec tar]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10965081#p10965081</link>
			<description><![CDATA[<p>peux-tu poster le contenu de ton crontab ?</p>]]></description>
			<author><![CDATA[dummy@example.com (nesthib)]]></author>
			<pubDate>Mon, 01 Oct 2012 16:01:33 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10965081#p10965081</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] problème de recursion avec tar]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10964671#p10964671</link>
			<description><![CDATA[<p>Bonjour Credenhill ta commande marche bien lorsque je la lance à la main mais ne marche pas quand j&#039;essaye de l&#039;automatiser via CRONTAB.</p><p>Finalement je crois que mon problème reste CRONTAB je vais donc aller trifouiller à droite à gauche et sûrement revenir poster sur ce site.</p><p>Encore merci les gens pour toutes ces solutions.</p>]]></description>
			<author><![CDATA[dummy@example.com (zoulbiba)]]></author>
			<pubDate>Mon, 01 Oct 2012 15:31:40 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10964671#p10964671</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] problème de recursion avec tar]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10927061#p10927061</link>
			<description><![CDATA[<p>hello<br />et avec le find de nesthib et </p><div class="codebox"><pre><code>find ton_dossier -iregex &#039;.*.\(txt\|xls\|doc\|pdf\)&#039;  | tar -T - -zcvf commun.tgz</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (credenhill)]]></author>
			<pubDate>Fri, 28 Sep 2012 13:45:26 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10927061#p10927061</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] problème de recursion avec tar]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10925381#p10925381</link>
			<description><![CDATA[<p>Je tourne en rond...</p><p>La commande == find ton_dossier -iregex &#039;.*.\(txt\|xls\|doc\|pdf\)&#039; -print0 | xargs -0 tar zcvf commun.tgz ==&#160; &#160;ne&#160; Nesthib ne marche bien que lorsque je la lance en local ( j&#039;ai fait une copie du répertoire en question d&#039;un des serveurs sur mon ordi pour faire des test). Donc en local je récupère bien tous les fichiers voulu.&#160; &#160; &#160; </p><p>Mais si je la lance depuis l&#039;un des serveurs je n&#039;ai qu&#039;un seul sous-répertoire dans mon fichier tgz&#160; et ne récupère donc quasi aucun des fichiers voulu...<br />Je n&#039;ai pourtant aucun message d&#039;erreur et lorsque je regarde la commande travailler il me liste bien tous les fichiers voulu.</p>]]></description>
			<author><![CDATA[dummy@example.com (zoulbiba)]]></author>
			<pubDate>Fri, 28 Sep 2012 10:39:56 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10925381#p10925381</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu] problème de recursion avec tar]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=10924791#p10924791</link>
			<description><![CDATA[<p>Mon script est bien un script bash.<br />Je dois déployer ce script sur plusieurs serveurs et sur celui que je test la version est antérieur à bash 4.<br />Je vas plutôt m&#039;orienter vers la commande de Nesthib que de me lancer dans des mise à jour qui pourraient entraîner d&#039;autres problèmes.</p>]]></description>
			<author><![CDATA[dummy@example.com (zoulbiba)]]></author>
			<pubDate>Fri, 28 Sep 2012 09:30:45 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=10924791#p10924791</guid>
		</item>
	</channel>
</rss>
