Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can i have a ignore list in cient? #19

Open
chungyan5 opened this issue May 12, 2011 · 1 comment
Open

can i have a ignore list in cient? #19

chungyan5 opened this issue May 12, 2011 · 1 comment

Comments

@chungyan5
Copy link

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.

@chungyan5
Copy link
Author

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.

@chungyan5 chungyan5 reopened this May 17, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant