Project

Profile

Help

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

« Previous - Sprint/Milestone 2/5 (diff) - Next » - Current version
Mark Zaslavskiy, 25.11.2016 13:59


SSHFS setup for linking repo and LOGS dir

h2.

On the slave perform following commands (for getting instant but temporary (till first reboot) solution):

sudo apt-get install sshfs
mkdir LOGS/ repo/ repository/
sudo sshfs -o allow_other vagrant@max-tst-01.mariadb.com:/home/vagrant/LOGS /home/vagrant/LOGS
sudo sshfs -o allow_other vagrant@max-tst-01.mariadb.com:/home/vagrant/repo /home/vagrant/repo
sudo sshfs -o allow_other vagrant@max-tst-01.mariadb.com:/home/vagrant/repository /home/vagrant/repository

For getting reboot-resistant solution add following lines to /etc/fstab:

sshfs#vagrant@max-tst-01.mariadb.com:/home/vagrant/LOGS /home/vagrant/LOGS
sshfs#vagrant@max-tst-01.mariadb.com:/home/vagrant/repo /home/vagrant/repo
sshfs#vagrant@max-tst-01.mariadb.com:/home/vagrant/repository /home/vagrant/repository

Links