comment and trying to start clena
This commit is contained in:
parent
da4359b45d
commit
a1169c79a6
@ -30,5 +30,5 @@ sync() {
|
||||
#echo "executing rsync -aPu --log-file=$LOGFILE -e ssh $otheropts $src $dest"
|
||||
# NOTE REMOTEDIR ALREADY EXISTS IN DESTINATION
|
||||
rsync -aPu --log-file=$LOGFILE -e ssh $otheropts $src $dest 1>/dev/null || \
|
||||
echo 'sync error probabily for some reason rsync is broken, raise Exception and quit' && exit 1
|
||||
echo 'generic sync error. Probabily for some reason rsync is broken, raise Exception and quit' && exit 1
|
||||
}
|
||||
|
9
masync
9
masync
@ -104,6 +104,15 @@ feeddeletes() {
|
||||
done
|
||||
}
|
||||
|
||||
##########################################
|
||||
# the init action is composed by
|
||||
# 1. the mirroring of the remote folder.
|
||||
# Basycally an `rsync` that uses the remote folder as the source
|
||||
# and the local folder as the destination
|
||||
#
|
||||
# 2. creating a sync task (a line) in the file that contains the list of all sync
|
||||
# 3. starting the loop listening for the changes in local folder
|
||||
##########################################
|
||||
|
||||
initsyncpath() {
|
||||
echo 'Starting initial sync...'
|
||||
|
Loading…
x
Reference in New Issue
Block a user