Add unison config files
This commit is contained in:
parent
04b9241b41
commit
4ddcb8f6d5
@ -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
|
||||
echo $(more ${tmp_file})
|
||||
fi
|
||||
|
||||
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
|
||||
done
|
||||
|
14
unison/default.prf
Normal file
14
unison/default.prf
Normal 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
14
unison/home.prf
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user