* exclude the dir of db hook doc .svn.
This commit is contained in:
@@ -24,7 +24,7 @@ src=$1/
|
||||
dest=$2/
|
||||
|
||||
# Rsync when the shell load first.
|
||||
rsync -aqP --exclude='*.svn' $src $dest
|
||||
rsync -aqP --exclude='*.svn' --exclude="db/" --exclude="doc/" --exclude='hook/' $src $dest
|
||||
echo `date "+%H:%M:%S"` sync $src to $dest succssfully.
|
||||
|
||||
# Watch the $src directory, and sync files to destination.
|
||||
@@ -56,7 +56,7 @@ while read watcher event file ; do
|
||||
else
|
||||
|
||||
echo `date "+%H:%M:%S"` $path2process copied.
|
||||
rsync -aqP --exclude='*.svn' $src/ $dest
|
||||
rsync -aqP --exclude='*.svn' --exclude='db/' --exclude='doc/' --exclude='hook/' $src/ $dest
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user