<h2>Submodules<aclass="headerlink"href="#submodules"title="Permalink to this headline">¶</a></h2>
</div>
<divclass="section"id="module-rbackup.config">
<spanid="rbackup-config-module"></span><h2>rbackup.config module<aclass="headerlink"href="#module-rbackup.config"title="Permalink to this headline">¶</a></h2>
<dlclass="function">
<dtid="rbackup.config.get_files_by_suffix">
<codeclass="descclassname">rbackup.config.</code><codeclass="descname">get_files_by_suffix</code><spanclass="sig-paren">(</span><em>suffix</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#rbackup.config.get_files_by_suffix"title="Permalink to this definition">¶</a></dt>
<dd><p>Retrieve all include files from the program configuration directory.</p>
<codeclass="descclassname">rbackup.config.</code><codeclass="descname">load_list_from_option</code><spanclass="sig-paren">(</span><em>parser</em>, <em>*</em>, <em>section=''</em>, <em>option=''</em>, <em>fallback=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#rbackup.config.load_list_from_option"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">rbackup.config.</code><codeclass="descname">merge_exclude_files</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#rbackup.config.merge_exclude_files"title="Permalink to this definition">¶</a></dt>
<dd><p>Merge exclude file paths into one file and yield its path for use with rsync.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Returns</dt>
<ddclass="field-odd"><p>path-like object</p>
</dd>
</dl>
</dd></dl>
<dlclass="function">
<dtid="rbackup.config.merge_files">
<codeclass="descclassname">rbackup.config.</code><codeclass="descname">merge_files</code><spanclass="sig-paren">(</span><em>files</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#rbackup.config.merge_files"title="Permalink to this definition">¶</a></dt>
<dd><p>Parse, filter, and sort through config files to create a single
<ddclass="field-odd"><p><strong>files</strong> (<em>iterable of path-like objects</em>) – files including paths to read from</p>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>path to file that lists include paths</p>
</dd>
<dtclass="field-odd">Return type</dt>
<ddclass="field-odd"><p>path-like object</p>
</dd>
</dl>
</dd></dl>
<dlclass="function">
<dtid="rbackup.config.merge_include_files">
<codeclass="descclassname">rbackup.config.</code><codeclass="descname">merge_include_files</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#rbackup.config.merge_include_files"title="Permalink to this definition">¶</a></dt>
<dd><p>Merge include file paths into one file and yield its path for use with rsync.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Returns</dt>
<ddclass="field-odd"><p>path-like object</p>
</dd>
</dl>
</dd></dl>
<dlclass="function">
<dtid="rbackup.config.parse_configfile">
<codeclass="descclassname">rbackup.config.</code><codeclass="descname">parse_configfile</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#rbackup.config.parse_configfile"title="Permalink to this definition">¶</a></dt>
<dd><p>Parse the main backup config file and return
a <codeclass="docutils literal notranslate"><spanclass="pre">configparser.ConfigParser</span></code> object.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Returns</dt>
<ddclass="field-odd"><p>object used to parse config file</p>
</dd>
<dtclass="field-even">Return type</dt>
<ddclass="field-even"><p>ConfigParser object</p>
</dd>
<dtclass="field-odd">Raises</dt>
<ddclass="field-odd"><p><strong>FileNotFoundError</strong>– if path does not exist</p>
</dd>
</dl>
</dd></dl>
</div>
<divclass="section"id="module-rbackup.rsync">
<spanid="rbackup-rsync-module"></span><h2>rbackup.rsync module<aclass="headerlink"href="#module-rbackup.rsync"title="Permalink to this headline">¶</a></h2>
<codeclass="descclassname">rbackup.rsync.</code><codeclass="descname">rsync</code><spanclass="sig-paren">(</span><em>*args</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#rbackup.rsync.rsync"title="Permalink to this definition">¶</a></dt>
<dd><p>Run an rsync command.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>args</strong> (<em>str</em>) – all arguments to pass to rsync</p>
</dd>
<dtclass="field-even">Raises</dt>
<ddclass="field-even"><p><strong>subprocess.CalledProcessError</strong>– if rsync process failed</p>
</dd>
</dl>
</dd></dl>
</div>
<divclass="section"id="module-rbackup">
<spanid="module-contents"></span><h2>Module contents<aclass="headerlink"href="#module-rbackup"title="Permalink to this headline">¶</a></h2>