<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.giles.net.nz/index.php?action=history&amp;feed=atom&amp;title=Computers%2FBackups</id>
	<title>Computers/Backups - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.giles.net.nz/index.php?action=history&amp;feed=atom&amp;title=Computers%2FBackups"/>
	<link rel="alternate" type="text/html" href="https://wiki.giles.net.nz/index.php?title=Computers/Backups&amp;action=history"/>
	<updated>2026-11-16T16:57:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://wiki.giles.net.nz/index.php?title=Computers/Backups&amp;diff=12&amp;oldid=prev</id>
		<title>192.168.0.159: Created page with &quot;{{TOCright}} {{TOCright}} === General === Backup are automatic and managed through ansible.  Data is backed up to the physical-server Computers/Kereru|...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.giles.net.nz/index.php?title=Computers/Backups&amp;diff=12&amp;oldid=prev"/>
		<updated>2022-05-21T05:18:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{TOCright}} {{TOCright}} === General === Backup are automatic and managed through &lt;a href=&quot;/index.php?title=Computers/Ansible&quot; title=&quot;Computers/Ansible&quot;&gt;ansible&lt;/a&gt;.  Data is backed up to the physical-server Computers/Kereru|...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{TOCright}}&lt;br /&gt;
{{TOCright}}&lt;br /&gt;
=== General ===&lt;br /&gt;
Backup are automatic and managed through [[Computers/Ansible|ansible]].  Data is backed up to the physical-server [[Computers/Kereru|kereru]], backups are stored in the &amp;lt;code&amp;gt;/home/borg&amp;lt;/code&amp;gt; directory, which is mounted onto the external disk.&lt;br /&gt;
&lt;br /&gt;
=== Working with backups ===&lt;br /&gt;
 # Setup&lt;br /&gt;
 HOST=$(hostname)&lt;br /&gt;
 REMOTEHOST=&amp;quot;kereru.giles.net.nz&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Inspecting backups ===&lt;br /&gt;
 # List all archives in the repository&lt;br /&gt;
 sudo -u borg borg list &amp;quot;ssh://borg@$REMOTEHOST/home/borg/backups/$HOST&amp;quot; &lt;br /&gt;
&lt;br /&gt;
 # Choose an archive, look inside it&lt;br /&gt;
 sudo -u borg borg list &amp;quot;ssh://borg@$REMOTEHOST/home/borg/backups/$HOST::whio-2022-04-24T00:30:25&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Restoring data ===&lt;br /&gt;
 # To restore a single file&lt;br /&gt;
 sudo -u borg borg extract --stdout &amp;quot;ssh://borg@$REMOTEHOST/home/borg/backups/$HOST::whio-2022-04-24T00:30:25&amp;quot; /pathtorestore &amp;gt; /tmp/outputfile&lt;br /&gt;
&lt;br /&gt;
 # To restore a everything to how it was previously&lt;br /&gt;
 sudo -u borg borg extract &amp;quot;ssh://borg@$REMOTEHOST/home/borg/backups/$HOST::whio-2022-04-24T00:30:25&amp;quot;&lt;/div&gt;</summary>
		<author><name>192.168.0.159</name></author>
	</entry>
</feed>