delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Date: | Thu, 10 May 2007 04:59:24 +1000 |
From: | oleyk <oleyk AT mail DOT ru> |
X-Mailer: | The Bat! (v1.62r) |
Reply-To: | oleyk <oleyk AT mail DOT ru> |
Message-ID: | <1499567591.20070510045924@mail.ru> |
To: | Marvin Rishoff <cygwin AT cygwin DOT com> |
Subject: | Re[2]: rsync with --recursive --files-from= |
In-Reply-To: | <46414199.8080708@streamguys.com> |
References: | <ef38b31b0705031704x2a39e17cva9d5ae9aad5b7faa AT mail DOT gmail DOT com> <1124138508 DOT 20070507010012 AT mail DOT ru> <46414199 DOT 8080708 AT streamguys DOT com> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |