updated norg backup

This commit is contained in:
Paul Wilde 2024-08-18 19:06:25 +01:00
parent 83f62fa912
commit 5f2d5544c2

View file

@ -125,11 +125,10 @@
<p>Inspired by <a href="https://torsion.org/borgmatic">Borgmatic</a></p> <p>Inspired by <a href="https://torsion.org/borgmatic">Borgmatic</a></p>
<h2 id="usage">Usage</h2> <h2 id="usage">Usage</h2>
<p>Norg uses a <code>toml</code> based config file for configuration. An example configuration would look like this:</p> <p>Norg uses a <code>toml</code> based config file for configuration. An example configuration would look like this:</p>
<pre data-lang="toml" style="background-color:#212121;color:#eeffff;" class="language-toml "><code class="language-toml" data-lang="toml"><span style="color:#f07178;">source_dirs </span><span style="color:#89ddff;">= [ <pre data-lang="toml" style="background-color:#212121;color:#eeffff;" class="language-toml "><code class="language-toml" data-lang="toml"><span style="color:#f07178;">source_directories </span><span style="color:#89ddff;">= [
</span><span> </span><span style="color:#89ddff;">&quot;</span><span style="color:#c3e88d;">/home/me/Music</span><span style="color:#89ddff;">&quot;, </span><span> </span><span style="color:#89ddff;">&quot;</span><span style="color:#c3e88d;">/home/me/Music</span><span style="color:#89ddff;">&quot;,
</span><span> </span><span style="color:#89ddff;">&quot;</span><span style="color:#c3e88d;">/home/me/Pictures</span><span style="color:#89ddff;">&quot; </span><span> </span><span style="color:#89ddff;">&quot;</span><span style="color:#c3e88d;">/home/me/Pictures</span><span style="color:#89ddff;">&quot;
</span><span style="color:#89ddff;">] </span><span style="color:#89ddff;">]
</span><span style="color:#f07178;">encryption_password </span><span style="color:#89ddff;">= &quot;</span><span style="color:#c3e88d;">MyReallySecurePassword</span><span style="color:#89ddff;">&quot;
</span><span style="color:#89ddff;">[[repositories]] </span><span style="color:#89ddff;">[[repositories]]
</span><span style="color:#f07178;">label </span><span style="color:#89ddff;">= &quot;</span><span style="color:#c3e88d;">A Repository</span><span style="color:#89ddff;">&quot; </span><span style="color:#f07178;">label </span><span style="color:#89ddff;">= &quot;</span><span style="color:#c3e88d;">A Repository</span><span style="color:#89ddff;">&quot;
</span><span style="color:#f07178;">path </span><span style="color:#89ddff;">= &quot;</span><span style="color:#c3e88d;">/my/backup/location</span><span style="color:#89ddff;">&quot; </span><span style="color:#f07178;">path </span><span style="color:#89ddff;">= &quot;</span><span style="color:#c3e88d;">/my/backup/location</span><span style="color:#89ddff;">&quot;
@ -138,6 +137,15 @@
</span><span style="color:#f07178;">label </span><span style="color:#89ddff;">= &quot;</span><span style="color:#c3e88d;">Another Respository at BorgBase</span><span style="color:#89ddff;">&quot; </span><span style="color:#f07178;">label </span><span style="color:#89ddff;">= &quot;</span><span style="color:#c3e88d;">Another Respository at BorgBase</span><span style="color:#89ddff;">&quot;
</span><span style="color:#f07178;">path </span><span style="color:#89ddff;">= &quot;</span><span style="color:#c3e88d;">ssh://1234abcd@1234abcd.repo.borgbase.com/./repo</span><span style="color:#89ddff;">&quot; </span><span style="color:#f07178;">path </span><span style="color:#89ddff;">= &quot;</span><span style="color:#c3e88d;">ssh://1234abcd@1234abcd.repo.borgbase.com/./repo</span><span style="color:#89ddff;">&quot;
</span><span> </span><span>
</span><span style="color:#89ddff;">[encryption]
</span><span style="color:#f07178;">encryption_passphrase </span><span style="color:#89ddff;">= &quot;</span><span style="color:#c3e88d;">MyReallySecurePassword</span><span style="color:#89ddff;">&quot;
</span><span>
</span><span style="color:#89ddff;">[actions]
</span><span style="color:#f07178;">before_actions </span><span style="color:#89ddff;">= [&quot;</span><span style="color:#c3e88d;">echo before actions</span><span style="color:#89ddff;">&quot;]
</span><span style="color:#f07178;">after_actions </span><span style="color:#89ddff;">= [&quot;</span><span style="color:#c3e88d;">echo after actions</span><span style="color:#89ddff;">&quot;, &quot;</span><span style="color:#c3e88d;">echo actions completed</span><span style="color:#89ddff;">&quot;]
</span><span style="color:#f07178;">before_backup </span><span style="color:#89ddff;">= [&quot;</span><span style="color:#c3e88d;">echo before backup</span><span style="color:#89ddff;">&quot;, &quot;</span><span style="color:#c3e88d;">date</span><span style="color:#89ddff;">&quot;]
</span><span style="color:#f07178;">after_backup </span><span style="color:#89ddff;">= [&quot;</span><span style="color:#c3e88d;">echo after backup</span><span style="color:#89ddff;">&quot;,&quot;</span><span style="color:#c3e88d;">echo backup completed</span><span style="color:#89ddff;">&quot;]
</span><span>
</span><span style="color:#89ddff;">[uptimekuma] </span><span style="color:#89ddff;">[uptimekuma]
</span><span style="color:#f07178;">base_url </span><span style="color:#89ddff;">= &quot;</span><span style="color:#c3e88d;">https://uptime.kuma.url/api/push/1234abcd</span><span style="color:#89ddff;">&quot; </span><span style="color:#f07178;">base_url </span><span style="color:#89ddff;">= &quot;</span><span style="color:#c3e88d;">https://uptime.kuma.url/api/push/1234abcd</span><span style="color:#89ddff;">&quot;
</span><span style="color:#f07178;">states </span><span style="color:#89ddff;">= [&quot;</span><span style="color:#c3e88d;">Success</span><span style="color:#89ddff;">&quot;,&quot;</span><span style="color:#c3e88d;">Failure</span><span style="color:#89ddff;">&quot;, &quot;</span><span style="color:#c3e88d;">Running</span><span style="color:#89ddff;">&quot;] </span><span style="color:#f07178;">states </span><span style="color:#89ddff;">= [&quot;</span><span style="color:#c3e88d;">Success</span><span style="color:#89ddff;">&quot;,&quot;</span><span style="color:#c3e88d;">Failure</span><span style="color:#89ddff;">&quot;, &quot;</span><span style="color:#c3e88d;">Running</span><span style="color:#89ddff;">&quot;]