Removed unison sync. ownCloud will be used...

This commit is contained in:
Austen Adler 2014-07-18 17:04:46 -04:00
parent e3d89ba535
commit 97a6b13224
5 changed files with 1 additions and 16 deletions

View File

@ -1,4 +1,4 @@
while getopts ":hbsdtclwu" VALUE "$@"; do while getopts ":hbsdtclw" VALUE "$@"; do
if [ "$VALUE" = "h" ] ; then if [ "$VALUE" = "h" ] ; then
echo "sync.sh syncs configuration files, applications, and Vim bundles between computers" echo "sync.sh syncs configuration files, applications, and Vim bundles between computers"
echo " -h Shows this help" 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 `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\"" sudo vi /usr/local/etc/wemux.conf +":execute \"normal gg/host_list\<CR>nnww\""
fi 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 done
echo "Done syncing" echo "Done syncing"

View File

@ -1,2 +0,0 @@
#! /bin/bash
ps aux | grep unison | awk '{print $2}' | xargs kill -9

View File

@ -1,2 +0,0 @@
#! /bin/bash
unison default ~/Documents ssh://stonewareslord@localhost:9922//home/vinh/Backup/Documents -repeat watch -times -logfile /tmp/unison.log

View File

@ -1,2 +0,0 @@
#! /bin/bash
sudo -u stonewareslord ssh stonewareslord@austenwares.com -Y -C -f -N -L 9922:austenwares.com:22

View File

@ -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