www.delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <46414199.8080708@streamguys.com> |
Date: | Tue, 08 May 2007 20:35:53 -0700 |
From: | Marvin Rishoff <mrishoff AT streamguys DOT com> |
User-Agent: | Thunderbird 1.5.0.10 (Windows/20070221) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: rsync with --recursive --files-from= |
References: | <ef38b31b0705031704x2a39e17cva9d5ae9aad5b7faa AT mail DOT gmail DOT com> <1124138508 DOT 20070507010012 AT mail DOT ru> |
In-Reply-To: | <1124138508.20070507010012@mail.ru> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
First of all thanks for the reply it has given me hope, and I really appreciate letting me take some of your time. but I am still stuck with this one and I am still seeking help using your suggestion: ------------------------------------------------------------------------------------------------------------------------------ #!/bin/bash cd "/c/WINDOWS/system32/LogFiles/WMS/[Global]/" rsync -avz --recursive --files-from=< \ (find ./WMS_*.log -mtime -7 -print) \ "/c/WINDOWS/system32/LogFiles/WMS/[Global]" -e ssh admin AT myhost DOT net:/var/log/streaming/wms/logs now when I run the script I get $ ./rsync.sh ./rsync.sh: line 5: find: No such file or directory ------------------------------------------------------------------------------------------------------------------------------- so I tried changing a few things around so that my script was more like this ------------------------------------------------------------------------------------------------------------------------------ #!/bin/bash cd "/c/WINDOWS/system32/LogFiles/WMS/[Global]/" find ./WMS_*.log -mtime -7 -print >> list /usr/bin/rsync -avz --files-from=list -e ssh admin AT myhost DOT net:/var /log/streaming/wms/logs ------------------------------------------------------------------------------------------------------------------------------- the change directory worked and the list was printed however I when I run it I get the --help page printed with rsync error: syntax or usage error (code 1) did I maybe just take a wrong turn here. it seems simple enough that I should be able to create the list and then have rsync only sync the files from the list. maybe I need to stick to the first script. any help much appreciated Thanks in advance. Marvin oleyk wrote: > Replying to a message of marvin rishoff to cygwin, Friday, May 4, 2007, 10:04 +1000: > > mr> rsync: failed to open files-from file <(cd > mr> /c/WINDOWS/system32/LogFiles/WMS/[Global]/ && find ./WMS_*.log -mtime > mr> -7 -print): No such file or directory > mr> rsync error: syntax or usage error (code 1) at > mr> /home/lapo/packaging/tmp/rsync-2.6.6/main.c(1108) > > mr> the command that works is : > > mr> rsync -avz --recursive --files-from=<(cd > mr> "/c/WINDOWS/system32/LogFiles/WMS/[Global]/" && find ./WMS_*.log > mr> -mtime -7 -print) "/c/WINDOWS/system32/LogFiles/WMS/[Global]" -e ssh > mr> admin AT myhost DOT net:/var/log/streaming/wms/logs > > mr> anyone got a min to correct my usage or point me in the right direction > > cd "/c/WINDOWS/system32/LogFiles/WMS/[Global]/" > rsync -avz --recursive --files-from=< \ > (find ./WMS_*.log -mtime -7 -print) \ > "/c/WINDOWS/system32/LogFiles/WMS/[Global]" -e ssh admin AT myhost DOT net:/var/log/streaming/wms/logs > > > > -- 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 |