X-Spam-Check-By: sourceware.org Date: Thu, 10 May 2007 04:59:24 +1000 From: oleyk X-Mailer: The Bat! (v1.62r) Reply-To: oleyk Message-ID: <1499567591.20070510045924@mail.ru> To: Marvin Rishoff Subject: Re[2]: rsync with --recursive --files-from= In-Reply-To: <46414199.8080708@streamguys.com> References: <1124138508 DOT 20070507010012 AT mail DOT ru> <46414199 DOT 8080708 AT streamguys DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 admin AT myhost DOT net:/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/