Project

Profile

Help

SSHFS setup for linking repo and LOGS dir » History » Sprint/Milestone 2

Mark Zaslavskiy, 25.11.2016 13:59

1 1 Mark Zaslavskiy
h1. SSHFS setup for linking repo and LOGS dir
2 1 Mark Zaslavskiy
3 2 Mark Zaslavskiy
h2. 
4 1 Mark Zaslavskiy
5 2 Mark Zaslavskiy
On the slave perform following commands (for getting instant but temporary (till first reboot) solution):
6 1 Mark Zaslavskiy
7 2 Mark Zaslavskiy
<pre><code class="text">
8 1 Mark Zaslavskiy
sudo apt-get install sshfs
9 1 Mark Zaslavskiy
mkdir LOGS/ repo/ repository/
10 1 Mark Zaslavskiy
sudo sshfs -o allow_other vagrant@max-tst-01.mariadb.com:/home/vagrant/LOGS /home/vagrant/LOGS
11 1 Mark Zaslavskiy
sudo sshfs -o allow_other vagrant@max-tst-01.mariadb.com:/home/vagrant/repo /home/vagrant/repo
12 1 Mark Zaslavskiy
sudo sshfs -o allow_other vagrant@max-tst-01.mariadb.com:/home/vagrant/repository /home/vagrant/repository
13 2 Mark Zaslavskiy
</code></pre>
14 2 Mark Zaslavskiy
15 2 Mark Zaslavskiy
For getting reboot-resistant solution add following lines to /etc/fstab:
16 2 Mark Zaslavskiy
17 2 Mark Zaslavskiy
<pre><code class="text">
18 2 Mark Zaslavskiy
sshfs#vagrant@max-tst-01.mariadb.com:/home/vagrant/LOGS /home/vagrant/LOGS
19 2 Mark Zaslavskiy
sshfs#vagrant@max-tst-01.mariadb.com:/home/vagrant/repo /home/vagrant/repo
20 2 Mark Zaslavskiy
sshfs#vagrant@max-tst-01.mariadb.com:/home/vagrant/repository /home/vagrant/repository
21 2 Mark Zaslavskiy
</code></pre>
22 2 Mark Zaslavskiy
23 1 Mark Zaslavskiy
24 1 Mark Zaslavskiy
h2. Links
25 1 Mark Zaslavskiy
26 1 Mark Zaslavskiy
* https://www.digitalocean.com/community/tutorials/how-to-use-sshfs-to-mount-remote-file-systems-over-ssh