Project

Profile

Help

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

Mark Zaslavskiy, 08.12.2016 08:24

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 3 Mark Zaslavskiy
cd $HOME
10 1 Mark Zaslavskiy
mkdir LOGS/ repo/ repository/
11 1 Mark Zaslavskiy
sudo sshfs -o allow_other vagrant@max-tst-01.mariadb.com:/home/vagrant/LOGS /home/vagrant/LOGS
12 1 Mark Zaslavskiy
sudo sshfs -o allow_other vagrant@max-tst-01.mariadb.com:/home/vagrant/repo /home/vagrant/repo
13 1 Mark Zaslavskiy
sudo sshfs -o allow_other vagrant@max-tst-01.mariadb.com:/home/vagrant/repository /home/vagrant/repository
14 2 Mark Zaslavskiy
</code></pre>
15 2 Mark Zaslavskiy
16 2 Mark Zaslavskiy
For getting reboot-resistant solution add following lines to /etc/fstab:
17 2 Mark Zaslavskiy
18 2 Mark Zaslavskiy
<pre><code class="text">
19 2 Mark Zaslavskiy
sshfs#vagrant@max-tst-01.mariadb.com:/home/vagrant/LOGS /home/vagrant/LOGS
20 2 Mark Zaslavskiy
sshfs#vagrant@max-tst-01.mariadb.com:/home/vagrant/repo /home/vagrant/repo
21 2 Mark Zaslavskiy
sshfs#vagrant@max-tst-01.mariadb.com:/home/vagrant/repository /home/vagrant/repository
22 2 Mark Zaslavskiy
</code></pre>
23 2 Mark Zaslavskiy
24 1 Mark Zaslavskiy
25 1 Mark Zaslavskiy
h2. Links
26 1 Mark Zaslavskiy
27 1 Mark Zaslavskiy
* https://www.digitalocean.com/community/tutorials/how-to-use-sshfs-to-mount-remote-file-systems-over-ssh