Removed unison sync. ownCloud will be used...
This commit is contained in:
parent
e3d89ba535
commit
97a6b13224
8
sync.sh
8
sync.sh
@ -1,4 +1,4 @@
|
||||
while getopts ":hbsdtclwu" VALUE "$@"; do
|
||||
while getopts ":hbsdtclw" VALUE "$@"; do
|
||||
if [ "$VALUE" = "h" ] ; then
|
||||
echo "sync.sh syncs configuration files, applications, and Vim bundles between computers"
|
||||
echo " -h Shows this help"
|
||||
@ -83,11 +83,5 @@ while getopts ":hbsdtclwu" VALUE "$@"; do
|
||||
sudo vi `which wemux` +"execute \"normal gg/tmux\<CR>nnnea -2\<Esc>nea -2\<Esc>ggZZ\""
|
||||
sudo vi /usr/local/etc/wemux.conf +":execute \"normal gg/host_list\<CR>nnww\""
|
||||
fi
|
||||
if [ "$VALUE" = "u" ] ; then
|
||||
sudo cp unison/unisonNetworkOnPortForward.sh /etc/network/if-up.d/
|
||||
sudo vim /etc/rc.local +"execute \"normal /exit 0\<CR>Osudo -u stonewareslord ${PWD}/unison/unisonMonitor.sh &\<Esc>ggZZ\""
|
||||
vim unison/unisonSync.sh +"execute \"gg/sync<CR>\$hci\"${PWD}\<Esc>ggZZ\""
|
||||
echo "30 12 * * * ${PWD}/unison/unisonSync.sh" >> /etc/cron.d/unison
|
||||
fi
|
||||
done
|
||||
echo "Done syncing"
|
||||
|
@ -1,2 +0,0 @@
|
||||
#! /bin/bash
|
||||
ps aux | grep unison | awk '{print $2}' | xargs kill -9
|
@ -1,2 +0,0 @@
|
||||
#! /bin/bash
|
||||
unison default ~/Documents ssh://stonewareslord@localhost:9922//home/vinh/Backup/Documents -repeat watch -times -logfile /tmp/unison.log
|
@ -1,2 +0,0 @@
|
||||
#! /bin/bash
|
||||
sudo -u stonewareslord ssh stonewareslord@austenwares.com -Y -C -f -N -L 9922:austenwares.com:22
|
@ -1,3 +0,0 @@
|
||||
#! /bin/bash
|
||||
sync="~/applications/sync/"
|
||||
unison -batch -times $SYNC ssh://stonewareslord@localhost:9922//home/stonewareslord/unison/sync -logfile /tmp/unison.log
|
Loading…
Reference in New Issue
Block a user