<span  id="index-0"></span><div  id="back-archiving-solution">
<span id="back-archiving-soln"></span>
<p>One possible Solution:</p>
<div ><div ><pre><span >#!/usr/bin/env python2.5</span>
<span >import</span> <span >os</span>
<span >import</span> <span >ecflow</span> 
   
<span >defs</span> <span >=</span> <span >ecflow</span><span >.</span><span >Defs</span><span >()</span>
<span >suite</span> <span >=</span> <span >defs</span><span >.</span><span >add_suite</span><span >(</span><span >&quot;back_archiving&quot;</span><span >)</span>
<span >suite</span><span >.</span><span >add_repeat</span><span >(</span> <span >ecflow</span><span >.</span><span >RepeatDay</span><span >(</span><span >1</span><span >)</span> <span >)</span>
<span >suite</span><span >.</span><span >add_variable</span><span >(</span><span >&quot;ECF_HOME&quot;</span><span >,</span><span >os</span><span >.</span><span >getenv</span><span >(</span><span >&quot;HOME&quot;</span><span >)</span> <span >+</span> <span >&quot;/course&quot;</span><span >)</span>
<span >suite</span><span >.</span><span >add_variable</span><span >(</span><span >&quot;ECF_INCLUDE&quot;</span><span >,</span><span >os</span><span >.</span><span >getenv</span><span >(</span><span >&quot;HOME&quot;</span><span >)</span> <span >+</span> <span >&quot;/course&quot;</span><span >)</span>
<span >suite</span><span >.</span><span >add_variable</span><span >(</span><span >&quot;ECF_FILES&quot;</span><span >,</span><span >os</span><span >.</span><span >getenv</span><span >(</span><span >&quot;HOME&quot;</span><span >)</span> <span >+</span> <span >&quot;/course/back&quot;</span><span >)</span>
<span >suite</span><span >.</span><span >add_variable</span><span >(</span><span >&quot;SLEEP&quot;</span><span >,</span><span >&quot;2&quot;</span><span >)</span>
<span >suite</span><span >.</span><span >add_limit</span><span >(</span><span >&quot;access&quot;</span><span >,</span><span >2</span><span >)</span>
<span >for</span> <span >kind</span> <span >in</span> <span >(</span> <span >&quot;analysis&quot;</span><span >,</span> <span >&quot;forecast&quot;</span><span >,</span> <span >&quot;climatology&quot;</span><span >,</span> <span >&quot;observations&quot;</span><span >,</span> <span >&quot;images&quot;</span> <span >):</span>
    <span >find_fam</span> <span >=</span> <span >suite</span><span >.</span><span >add_family</span><span >(</span><span >kind</span><span >);</span>
    <span >find_fam</span><span >.</span><span >add_repeat</span><span >(</span> <span >ecflow</span><span >.</span><span >RepeatDate</span><span >(</span><span >&quot;DATE&quot;</span><span >,</span><span >19900101</span><span >,</span><span >19950712</span><span >)</span> <span >);</span>
    <span >find_fam</span><span >.</span><span >add_variable</span><span >(</span><span >&quot;KIND&quot;</span><span >,</span><span >kind</span><span >)</span>
    <span >find_fam</span><span >.</span><span >add_task</span><span >(</span><span >&quot;get_old&quot;</span><span >)</span><span >.</span><span >add_inlimit</span><span >(</span><span >&quot;access&quot;</span><span >)</span>
    <span >find_fam</span><span >.</span><span >add_task</span><span >(</span><span >&quot;convert&quot;</span><span >)</span><span >.</span><span >add_trigger</span><span >(</span><span >&quot;get_old == complete&quot;</span><span >)</span>
    <span >find_fam</span><span >.</span><span >add_task</span><span >(</span><span >&quot;save_new&quot;</span><span >)</span><span >.</span><span >add_trigger</span><span >(</span><span >&quot;convert == complete&quot;</span><span >)</span>
    
</pre></div>
</div>
</div>