rsync directories that match a string

Jason Lewis jasonblewis at gmail.com
Wed Sep 5 00:47:03 GMT 2007


Hi,

I am trying to rsync the "new" folder for all my mail users from the old
server to the new server we have.

Basically I want to copy all files from
oldserver/home/$USERS/Maildir/new  to newserver/home/$USERS/Maildir/new
   where the $USERS represents all the user's home folders.

this is what I have tried but its not working:

rsync --dry-run -vaxuHS \
        --filter='+ */Maildir/***'    \
        --filter='- **'   \
        "rsync://home@10.0.2.16/home/*" /home/

Any suggestions would be appreciated.

Thanks,

Jason


More information about the rsync mailing list