Replying to a message of Marvin Rishoff to cygwin, Wednesday, May 9, 2007, 13:35 +1000:
MR> --------------------------------------------------------------------- MR> #!/bin/bash MR> cd "/c/WINDOWS/system32/LogFiles/WMS/[Global]/" MR> find ./WMS_*.log -mtime -7 -print >> list MR> /usr/bin/rsync -avz --files-from=list -e ssh [EMAIL PROTECTED]:/var MR> /log/streaming/wms/logs MR> --------------------------------------------------------------------- MR> the change directory worked MR> and the list was printed MR> however I when I run it I get the --help page printed with rsync error: MR> syntax or usage error (code 1) MR> did I maybe just take a wrong turn here. it seems simple enough that I MR> should be able to create the list and then have rsync only sync the MR> files from the list. maybe I need to stick to the first script. MR> any help much appreciated i'm sorry, but: $ rsync --version rsync version 2.4.6 protocol version 24 Written by Andrew Tridgell and Paul Mackerras $ rsync --help | grep -i from --exclude-from=FILE exclude patterns listed in FILE --include-from=FILE don't exclude patterns listed in FILE --password-file=FILE get password from FILE i have no option "--files-from=". i can't check. try so: Dave Korn> Show us the contents of 'list'. Perhaps some of the filenames Dave Korn> need escaping in some fashion. and /usr/bin/rsync -avz --files-from=`find ./WMS_*.log -mtime -7 -print` ... -- regards, oleyk -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/