<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Ssh – Yeri Tiete</title>
    <link>https://yeri.be/tag/ssh/</link>
    <description>Yeri Tiete&#39;s blog</description>
    <language>en</language>
    <copyright>© Yeri Tiete</copyright>
    <lastBuildDate>Fri, 27 Sep 2013 20:35:04 +0200</lastBuildDate>
    <atom:link href="https://yeri.be/tag/ssh/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>Hint of the day: @digitalocean and not mounting sshfs at boot</title>
      <link>https://yeri.be/hint-of-the-day-digital-ocean-and-sshfs/</link>
      <pubDate>Fri, 27 Sep 2013 20:35:04 +0200</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/hint-of-the-day-digital-ocean-and-sshfs/</guid>
      <description>&lt;p&gt;In /etc/fstab, be sure to add the option:&lt;/p&gt;&#xA;&lt;pre&gt;_netdev&lt;/pre&gt;&#xA;&lt;p&gt;As it will attempt to start the network mounted sshfs before networking has been started.&lt;/p&gt;&#xA;&lt;p&gt;The entire line looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;user@host:/some/dir /local/path fuse.sshfs defaults,idmap=user,_netdev  0 0&lt;/pre&gt;&#xA;&lt;p&gt;From the man pages:&lt;/p&gt;&#xA;&lt;p&gt;&lt;b&gt;_netdev&lt;/b&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;The filesystem resides on a device that requires network access (used to prevent the system from attempting to mount these filesystems until the network has been enabled on the system).&lt;/blockquote&gt;</description>
      <content:encoded><![CDATA[<p>In /etc/fstab, be sure to add the option:</p>
<pre>_netdev</pre>
<p>As it will attempt to start the network mounted sshfs before networking has been started.</p>
<p>The entire line looks like this:</p>
<pre>user@host:/some/dir /local/path fuse.sshfs defaults,idmap=user,_netdev  0 0</pre>
<p>From the man pages:</p>
<p><b>_netdev</b></p>
<blockquote>The filesystem resides on a device that requires network access (used to prevent the system from attempting to mount these filesystems until the network has been enabled on the system).</blockquote>
]]></content:encoded>
      <category>linux</category><category>networking</category><category>software</category><category>virtualisation</category>
      <category>ssh</category>
    </item>
    
    <item>
      <title>Rsync backups</title>
      <link>https://yeri.be/rsync-backups/</link>
      <pubDate>Mon, 25 Feb 2008 21:14:37 +0100</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/rsync-backups/</guid>
      <description>&lt;p&gt;My own simple rsync backup &amp;lsquo;script&amp;rsquo;.&lt;/p&gt;&#xA;&lt;p&gt;You&amp;rsquo;ll need a rsync server, something to backup, and ssh-agent running to ease the process (or, fill in your password each time).&lt;/p&gt;&#xA;&lt;p&gt;Add the following lines (using a terminal text editor) to a text file (&amp;quot;.rsync&amp;quot; for example, hidden files under Unix-like systems), and chmod +x $file.&lt;/p&gt;&#xA;&lt;pre line=&#34;1&#34; lang=&#34;bash&#34;&gt;rsync --archive -uv --exclude-from=/home/you/.rsync_exclude \&#xA;--rsh=&#34;ssh -p 222&#34; --delete --stats --progress /Users/you/Documents/ \&#xA;you@remost.host.com:/home/you/remote-backup-directory&lt;/pre&gt;&#xA;&lt;p&gt;This will upload any files in /Users/you/Documents to /home/you/remote-backup-directory.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>My own simple rsync backup &lsquo;script&rsquo;.</p>
<p>You&rsquo;ll need a rsync server, something to backup, and ssh-agent running to ease the process (or, fill in your password each time).</p>
<p>Add the following lines (using a terminal text editor) to a text file (&quot;.rsync&quot; for example, hidden files under Unix-like systems), and chmod +x $file.</p>
<pre line="1" lang="bash">rsync --archive -uv --exclude-from=/home/you/.rsync_exclude \
--rsh="ssh -p 222" --delete --stats --progress /Users/you/Documents/ \
you@remost.host.com:/home/you/remote-backup-directory</pre>
<p>This will upload any files in /Users/you/Documents to /home/you/remote-backup-directory.</p>
<p>It will use ssh on port 222 to transfer the files.</p>
<p>Just execute ./.rsync (if that&rsquo;s the name of your file) to run it.</p>
<p>If you make any  changes (locally), and run this, the changes will be applied on the remote server (e.g. file changes, renames, deletes, &hellip;) &ndash; this will delete files on the remote server if you&rsquo;ve deleted them locally!</p>
<p>The file .rsync_exclude is optional, it includes all files or directories that should NOT be uploaded</p>
<p>This is what I have in my .rsync_exclude:</p>
<pre line="1" lang="bash">Nazgul:~ yeri$ cat .rsync_exclude
Parallels/*</pre>
<p>Simple as hell, and yet so handy!</p>
]]></content:encoded>
      <category>apple</category><category>linux</category><category>software</category>
      <category>backup</category><category>rsync</category><category>ssh</category>
    </item>
    
  </channel>
</rss>
