Site updated at 2017-10-07 22:49:55 UTC

This commit is contained in:
Travis CI 2017-10-07 22:49:56 +00:00
parent f9a8fad682
commit 9ff55add23
128 changed files with 676 additions and 657 deletions

View file

@ -80,7 +80,7 @@
<p>You need two parts in order to get it working correctly.</p>
<p>Become the user that run Home Assistant.</p>
<ul>
<li>A seperate Python script that syncs a specific folder. Which can be found <a href="https://gist.github.com/riemers/31e3350041fd3e47e489cbc811209d6f">here</a></li>
<li>A separate Python script that syncs a specific folder. Which can be found <a href="https://gist.github.com/riemers/31e3350041fd3e47e489cbc811209d6f">here</a></li>
<li>The excellent <a href="https://github.com/andreafabrizi/Dropbox-Uploader/blob/master/dropbox_uploader.sh">dropbox uploader script</a> you can grab the .sh file only.</li>
</ul>
<p>Download those files to a folder of your liking, after that edit both files and change paths accordingly.</p>
@ -99,7 +99,7 @@
<p>The first time can take a lot of time since it will upload all your files!
Do note, this will <strong>backup your passwords to Dropbox</strong>.</p>
<h3><a class="title-link" name="automate-the-backup" href="#automate-the-backup"></a> Automate the backup</h3>
<p>So you just made a full backup, next time you want it to be done automaticly. Since your database can change and so do other files over time.
<p>So you just made a full backup, next time you want it to be done automatically. Since your database can change and so do other files over time.
Add it to your crontab, edit the <strong>path/to</strong> part.</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span><span class="o">(</span>crontab -l 2&gt;/dev/null; <span class="nb">echo</span> <span class="s2">"0 3 * * * python /path/to/dropbox.py"</span><span class="o">)</span> | crontab -
</code></pre>

View file

@ -92,7 +92,7 @@ This will not create a full backup of your Home Assistant files or your OS. In a
<ul>
<li>Extensive use of <a href="https://home-assistant.io/topics/secrets/">secrets.yaml</a> to hide sensitive information like usernames, passwords, device information, and location</li>
<li>Exclusion of some files, including <code class="highlighter-rouge">secrets.yaml</code> and device-specific information using a <a href="https://git-scm.com/docs/gitignore"><code class="highlighter-rouge">.gitignore</code></a> file</li>
<li>Regularly commiting your configuration to GitHub to make sure that your backup is up to date</li>
<li>Regularly committing your configuration to GitHub to make sure that your backup is up to date</li>
<li>Use a README.md to document your configuration and include screenshots of your Home Assistant GUI</li>
</ul>
<h3><a class="title-link" name="step-1-installing-and-initializing-git" href="#step-1-installing-and-initializing-git"></a> Step 1: Installing and Initializing Git</h3>
@ -164,7 +164,7 @@ git push origin master
<span class="nb">exit</span>
</code></pre>
</div>
<p>Every time you run this script, you will be prompted for a comment to describe the change(s) that you are commiting. This comment will be displayed beside each changed file on GitHub and will be stored after each commit. You will also be asked to enter your GitHub username and password (or ssh key passphrase if you use <a href="https://help.github.com/categories/ssh/">GitHub with ssh</a>).</p>
<p>Every time you run this script, you will be prompted for a comment to describe the change(s) that you are committing. This comment will be displayed beside each changed file on GitHub and will be stored after each commit. You will also be asked to enter your GitHub username and password (or ssh key passphrase if you use <a href="https://help.github.com/categories/ssh/">GitHub with ssh</a>).</p>
<h3><a class="title-link" name="step-7-configuration-file-testing" href="#step-7-configuration-file-testing"></a> Step 7: Configuration file testing</h3>
<p><a href="https://travis-ci.org">Travis CI</a> is a continuous integration testing system that runs every time the code in your repository is updated and allows you to validate that your code works on a fresh install.</p>
<ul>
@ -193,7 +193,7 @@ git push origin master
</code></pre>
</div>
<h3><a class="title-link" name="extra-commands" href="#extra-commands"></a> Extra commands</h3>
<p>You can enter these commands to get a list of the files in your local git repository and a status of files that have changed but not commited yet:</p>
<p>You can enter these commands to get a list of the files in your local git repository and a status of files that have changed but not committed yet:</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>git ls-files
<span class="gp">$ </span>git status
</code></pre>

View file

@ -146,7 +146,7 @@ Change below path to where you placed the <code class="highlighter-rouge">usb_ba
</code></pre>
</div>
<h3><a class="title-link" name="auto-mount" href="#auto-mount"></a> Auto mount</h3>
<p>This does not automaticly mount your USB drive at boot. You need to do that manually or add a line to your <code class="highlighter-rouge">/etc/fstab</code> file.</p>
<p>This does not automatically mount your USB drive at boot. You need to do that manually or add a line to your <code class="highlighter-rouge">/etc/fstab</code> file.</p>
<p>If your drive is on <code class="highlighter-rouge">/dev/sda1</code>, you could add a entry to your <code class="highlighter-rouge">/etc/fstab</code> like so:</p>
<div class="language-text highlighter-rouge"><pre class="highlight"><code>/dev/sda1 /media ext4 defaults,noatime 0 1
</code></pre>