Add unison config files

This commit is contained in:
Mathieu Maret 2013-09-04 17:14:18 +02:00
parent 04b9241b41
commit 4ddcb8f6d5
3 changed files with 39 additions and 8 deletions

View File

@ -1,11 +1,14 @@
unison_exe="/usr/bin/unison"
tmp_file=$(mktemp)
res=$(${unison_exe} -batch > ${tmp_file} 2>&1)
grep "Nothing to do: replicas have not changed since last sync" ${tmp_file} > /dev/null
file_sync=$?
if [ ! $file_sync == 0 ];
then
for profile in $@;
do
res=$(${unison_exe} -batch $profile > ${tmp_file} 2>&1)
grep "Nothing to do: replicas have not changed since last sync" ${tmp_file} > /dev/null
file_sync=$?
if [ ! $file_sync == 0 ];
then
echo $(more ${tmp_file})
fi
fi
done

14
unison/default.prf Normal file
View File

@ -0,0 +1,14 @@
root = /srv/samba/Photos/
#j'indique le chemin du dossier distant
root = ssh://mathieu@tutabaga.hd.free.fr//srv/share/Photos
# Options pour booster Windows
#fastcheck = true
# Options du journal
log = true
logfile = /home/mathieu/.unison/logunison
#zap les permissions
perms = 0

14
unison/home.prf Normal file
View File

@ -0,0 +1,14 @@
root = /home/mathieu/
#j'indique le chemin du dossier distant
root = ssh://mathieu@tutabaga.hd.free.fr//srv/share/mathieu/
path=mathieu/pass/
# Options pour booster Windows
#fastcheck = true
# Options du journal
log = true
logfile = /home/mathieu/.unison/logunison_math
#zap les permissions
perms = 0