-
Notifications
You must be signed in to change notification settings - Fork 6
/
templateSyncConfig.lua
27 lines (26 loc) · 1.38 KB
/
templateSyncConfig.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
-- This file is a template config file for lsyncd for working with the robot.
-- You should copy this file and rename it to mySyncConfig.lua, which is already in
-- the gitignore and will therefore be ignored by source control. You can then
-- edit it for your needs. It can then be run with `lsyncd <this file>`
-- You will need to setup ssh keys if you want this to work without constantly
-- entering passwords. You can do that by running (on your development machine):
-- ssh-keygen -t rsa -f ~/.ssh/id_rsa
-- ssh flo-username@flo-ip 'mkdir -p .ssh; touch .ssh/authorized_keys; cat >> .ssh/authorized_keys' < ~/.ssh/id_rsa.pub
-- Note, you can leave your rsa keys with no passphrase, but you might want some
-- more security: https://superuser.com/questions/261361/do-i-need-to-have-a-passphrase-for-my-ssh-rsa-key
settings{
nodaemon = true -- We want to be able to see this run and turn it off.
}
sync {
default.rsync,
source = "/home/mjsobrep/Documents/git/FloSystem",
target = "[email protected]:/home/nuc-admin/catkin_ws/src/FloSystem",
delay = 1, -- How long to wait before executing. Give it a second in
-- case there are lots of changes we can put together, but
-- don't want to be sitting around forever...
exclude = {'/.git','node_modules'},
rsync = {
archive = true,
compress = true
}
}