lipsync
lipsync copied to clipboard
can i have a ignore list in cient?
i hope i can have a ignore list in client to ignore to sync some files to server. I do not need to sync some files from server to my client_A; But these files need to sync from server to my client_B.
hi all, i try a little bit.
*ignore list from the serve to client only by rsync --exclude-from *lsyncd 2.0 seems complicated So it is one direction only
in bin/lipsync, i modified
rsync -rav --stats --log-file=/home/$USER_NAME/.lipsyncd/lipsyncd.log -e "ssh -l $USER_NAME -p $SSH_PORT" --delete $REMOTE_HOST:$LOCAL_DIR $REMOTE_DIR --exclude-from=/home/$USER_NAME/.lipsyncd/lipsyncd_exclude_file
in install.sh, i added in
deploy(){
....
echo -n " > /home/$username/.lipsyncd/lipsyncd.log..."
touch /home/$username/.lipsyncd/lipsyncd.log
chmod g+w /home/$username/.lipsyncd/lipsyncd.log
# release the log file to be a normal user mode
################################################
chown $username:$username /home/$username/.lipsyncd/lipsyncd.log
echo "done"
# create ignore list file, which format as same to rsync --exclude-from
################################################
echo -n " > /home/$username/.lipsyncd/lipsyncd_exclude_file..."
touch /home/$username/.lipsyncd/lipsyncd_exclude_file
chmod g+w /home/$username/.lipsyncd/lipsyncd_exclude_file
chown $username:$username /home/$username/.lipsyncd/lipsyncd_exclude_file
echo "done"
echo -n " > checking for $lipsync_dir_local..."
if [ ! -d $lipsync_dir_local ]; then
....
}
Anyone can give me suggestion and improvement.