Peter Møller Neergaard
2002-May-13 10:46 UTC
Problems with the rsync command line syntax for multiple files
I feel completely stupid for asking this question, but I have an essential problem of getting the syntax right for synchronizing multiple files. I am trying to use rsync to synchronize files generated in one directory with our public directory our web server. We have a number of files with the extension html so I have tried the following command line: rsync *.html /cs/church-data/www/root/reports I would expected it to match the third line from the usage: Usage: rsync [OPTION]... SRC [SRC]... [USER@]HOST:DEST or rsync [OPTION]... [USER@]HOST:SRC DEST or rsync [OPTION]... SRC [SRC]... DEST but it results in rsync printing the usage information. I also tried rsync Wells:TUFE-1996.html Wells:UMSR-1995.html /cs/church-data/www/root/reports/ rsync Home.html /cs/church-data/www/root/reports and only the latter work. So it appears that rsync has trouble parsing more than one parameter as source. Is this correct, or am I overlooking some completely obvious? I am running rsync version 2.4.5 on a Sun Solaris machine: types:/<4>wwwreports-dont-edit/bibtex2html > rsync -v rsync version 2.4.5 Copyright Andrew Tridgell and Paul Mackerras rsync is a file transfer program capable of efficient remote update via a fast differencing algorithm. Thanks in advance Peter -- http://www.linearity.org/turtle/contact.html ``When you have had all the experiences, met all the famous people, made some money, toured the world and got all the acclaim you still think--is that it? Some might be satisfied--but I wasn't'' -- G. Harrison
Dave Dykstra
2002-May-13 11:32 UTC
Problems with the rsync command line syntax for multiple files
Works for me. What does "*.html" expand to? I'm using rsync 2.5.5 but I don't think that would be different from 2.4.5. - Dave Dykstra On Mon, May 13, 2002 at 01:40:26PM -0400, Peter M?ller Neergaard wrote:> I feel completely stupid for asking this question, but I have an > essential problem of getting the syntax right for synchronizing > multiple files. I am trying to use rsync to synchronize files > generated in one directory with our public directory our web server. > We have a number of files with the extension html so I have tried the > following command line: > > rsync *.html /cs/church-data/www/root/reports > > I would expected it to match the third line from the usage: > > Usage: rsync [OPTION]... SRC [SRC]... [USER@]HOST:DEST > or rsync [OPTION]... [USER@]HOST:SRC DEST > or rsync [OPTION]... SRC [SRC]... DEST > > but it results in rsync printing the usage information. I also tried > > rsync Wells:TUFE-1996.html Wells:UMSR-1995.html /cs/church-data/www/root/reports/ > rsync Home.html /cs/church-data/www/root/reports > > and only the latter work. So it appears that rsync has trouble > parsing more than one parameter as source. Is this correct, or am I > overlooking some completely obvious? > > I am running rsync version 2.4.5 on a Sun Solaris machine: > > types:/<4>wwwreports-dont-edit/bibtex2html > rsync -v > rsync version 2.4.5 Copyright Andrew Tridgell and Paul Mackerras > > rsync is a file transfer program capable of efficient remote update > via a fast differencing algorithm. > > Thanks in advance > > Peter > -- > http://www.linearity.org/turtle/contact.html > ``When you have had all the experiences, met all the famous people, > made some money, toured the world and got all the acclaim you still > think--is that it? Some might be satisfied--but I wasn't'' -- G. Harrison > > -- > To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
tim.conway@philips.com
2002-May-13 13:13 UTC
Problems with the rsync command line syntax for multiple files
Pete: some(all?) of your filenames have colons, and most importantly, the first one does. If you can get something in front of the filenames to show it's a file before the program decides it's a servername, it should go... since you're doing the current directory, ./ works nicely. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>lsa.html a:b.html tconway@atlas:/users/tconway/test/1>rsync * ../2tconway@atlas:/users/tconway/test/1>mv a.html b.htmltconway@atlas:/users/tconway/test/1>rsync * ../2rsync version 2.5.5rc1 protocol version 26 Copyright (C) 1996-2002 by Andrew Tridgell and others <http://rsync.samba.org/> Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles, no IPv6, 64-bit system inums, 64-bit internal inums <<<<<<<<<<<<<<<<<<<<<<<<<usage message snipped>>>>>>>>>>>>>>>>>>>>>>>>>>>tconway@atlas:/users/tconway/test/1>rsync ./* ../2tconway@atlas:/users/tconway/test/1>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Tim Conway tim.conway@philips.com 303.682.4917 Philips Semiconductor - Longmont TC 1880 Industrial Circle, Suite D Longmont, CO 80501 Available via SameTime Connect within Philips, n9hmg on AIM perl -e 'print pack(nnnnnnnnnnnn, 19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970), ".\n" ' "There are some who call me.... Tim?" Peter M?ller Neergaard <turtle@achilles.linearity.org> Sent by: rsync-admin@lists.samba.org 05/13/2002 12:31 PM Please respond to Peter M?ller Neergaard To: Dave Dykstra <dwd@bell-labs.com> rsync@lists.samba.org cc: (bcc: Tim Conway/LMT/SC/PHILIPS) Subject: Re: Problems with the rsync command line syntax for multiple files Classification: On May 13, 2002, Dave Dykstra wrote: DD> Works for me. What does "*.html" expand to? The following: types:/<3>tmp/wwwreports-dont-edit > echo *.html Amt+Con+Dan+Mal:BRICS-2001.html Amt+Kfo+Per:CL-2002.html Amt+Kfo+Per:ESOP-2001.html Amt+Kfo+Per:PTA-2000.html Amt+Mul:IpRA-2002.html Amt+Tur:Faithful-ESOP-2000.html Amt+Tur:Faithful-TR-2000.html Amt:BRICS-1999.html Amt:CauMov-2001.html Banerjee:ICFP-1997.html Bawden:POPL-2000.html Bug+Per:FOOL-2000.html Bug+Per:IAC-2000.html Dim+Mul+Tur+Wel:ICFP-1997.html Dim+Wes+Mul+Tur+Wel+Con:TIC-2000-LNCS.html Dim+Wes+Mul+Tur+Wel+Con:TIC-2000-TR.html Dim+Wes+Mul+Tur+Wel+Con:TIC-2000-formal-sub-obsolete.html Dim+Wes+Mul+Tur+Wel+Con:TIC-2000.html Dim+Wes+Mul+Tur+Wel:ICFP-2001.html Home-bib.html Home.html Jim:MIT-LCS-1995-532.html Jim:RTTS-1995.html Kfo+Mai+Tur+Wel:ICFP-1999.html Kfo+Per:LICS-1999.html Kfo+Per:TIRD-1999.html Kfo+Wel:LICS-1995.html Kfo+Wel:POPL-1999.html Kfoury:JLC-2000-v10n3.html Kfoury:Rasiowa-memorial.html Kfoury:TTTR-1996.html Law+Mai:ESOP-2000.html Mac+Tur:Link-time-ESOP-2000.html Mac+Tur:Link-time-TR-2000.html Nee+Sor:IAC-ta.html Ong+Ste:curhff.html Per:PhD-2001.html St ewart:fortcf.html Tur+Dim+Mul+Wel:CPPFT-1997.html Tur+Wel:PPDP-2001.html Wel+Dim+Mul+Tur:JFP-2002-v12n3.html Wel+Dim+Mul+Tur:TAPSOFT-1997.html Wel+Haa:ESOP-2002.html Wells:APAL-1999-v98-no-note.html Wells:APAL-1999-v98.html Wells:ICALP-2002.html Wells:TUFE-1996.html Wells:UMSR-1995.html DD> I'm using rsync 2.5.5 but I don't think that would be different DD> from 2.4.5. Also on Sun/Solaris? /Peter -- http://www.linearity.org/turtle/contact.html ``When you have had all the experiences, met all the famous people, made some money, toured the world and got all the acclaim you still think--is that it? Some might be satisfied--but I wasn't'' -- G. Harrison -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html