</span><spanstyle="color:#f07178;">before_actions </span><spanstyle="color:#89ddff;">= ["</span><spanstyle="color:#c3e88d;">echo before actions</span><spanstyle="color:#89ddff;">"]
</span><spanstyle="color:#f07178;">after_actions </span><spanstyle="color:#89ddff;">= ["</span><spanstyle="color:#c3e88d;">echo after actions</span><spanstyle="color:#89ddff;">", "</span><spanstyle="color:#c3e88d;">echo actions completed</span><spanstyle="color:#89ddff;">"]
</span><spanstyle="color:#f07178;">before_backup </span><spanstyle="color:#89ddff;">= ["</span><spanstyle="color:#c3e88d;">echo before backup</span><spanstyle="color:#89ddff;">", "</span><spanstyle="color:#c3e88d;">date</span><spanstyle="color:#89ddff;">"]
</span><spanstyle="color:#f07178;">after_backup </span><spanstyle="color:#89ddff;">= ["</span><spanstyle="color:#c3e88d;">echo after backup</span><spanstyle="color:#89ddff;">","</span><spanstyle="color:#c3e88d;">echo backup completed</span><spanstyle="color:#89ddff;">"]
<p>You can then run the equivalent <code>borg</code> command to init, create, list, mount and extract your backups.</p>
<predata-lang="sh"style="background-color:#212121;color:#eeffff;"class="language-sh "><codeclass="language-sh"data-lang="sh"><spanstyle="font-style:italic;color:#4a4a4a;"># Init your repository
</span><spanstyle="font-style:italic;color:#4a4a4a;"># List Archives
</span><spanstyle="color:#82aaff;">norg</span><spanstyle="color:#89ddff;"> -</span><spanstyle="color:#f78c6c;">c</span><spanstyle="color:#82aaff;"> myconfig.toml list
</span><span>
</span><spanstyle="font-style:italic;color:#4a4a4a;"># Mount an Archive
</span><spanstyle="color:#82aaff;">norg</span><spanstyle="color:#89ddff;"> -</span><spanstyle="color:#f78c6c;">c</span><spanstyle="color:#82aaff;"> myconfig.toml mount pcname-2024-08-18T15:20:17773204 /home/me/mnt
</span><spanstyle="font-style:italic;color:#4a4a4a;"># Unmount an Archive
<p>Well, I don't know. I'm a Star Trek fan so obviously I wanted to keep something
in line with the <ahref="https://memory-alpha.fandom.com/wiki/Borg">Borg pseudo-species</a> as the borg backup utility does.<br/>
Also, sometimes I feel my code has elements of inexperience but loads of potential... which reminded me of <ahref="https://memory-alpha.fandom.com/wiki/Nog">Nog</a>.<br/>
So, simply put, <code>Norg</code> is an portmanteau of "Borg" and "Nog".</p>
<h2id="why-create-this-when-borgmatic-exists">Why create this when Borgmatic exists?</h2>
<p><code>Borgmatic</code> is absolutely fantastic, and I love it dearly. I even implemented
the <code>Uptime Kuma</code> hook that is in it. However, I got a little impatient waiting
for the version that included the Uptime Kuma hook to arrive in various distributions
package repositories so ended up building borgmatic from source on all computers.<br/>
This was a lengthy process, and borgmatic isn't very portable; it requires installation of numerous python packages (and the entire rust language in FreeBSD).<br/>
I wanted to make something that had to features I needed, in a single binary I
could move around to whatever computer I needed it on.<br/>
Norg was the outcome of this.</p>
<h2id="work-in-progress">Work in Progress</h2>
<p>Norg is still very much a work in progress, so there will be bugs. Please raise
and issue, or create a pull request for any issues and resolutions you may have.</p>
<h2id="contact">Contact</h2>
<p>For any issues, please raise an issue here. Otherwise, I can be contacted via
the fediverse at <ahref="https://notnull.space/@paul">@paul@notnull.space</a>.</p>
</div>
<divclass="pagination">
<divclass="pagination__title">
<spanclass="pagination__title-h">Thanks for reading! Read other posts?</span>