Error handling with rsync

2002-04-18 Thread Otto Wyss
Since I uses rsync in a perl script I'd rather prefer to get error codes from rsync instead of messages at STDOUT. Is there an option which tells rsync it should return error codes? Is this possible or do I ask something ridiculous? How is the error handling done when rsync can't download a file?

Checking of the existence of a remote file

2002-04-09 Thread Otto Wyss
In a Perl script I download files with rsync. But when a none existent file from the remote server is requested, rsync prints error messages if not -q is used. So I'd rather like to check the existence first (quiet) and then download it (verbose). Is it possible to check with the following command

Using pipes to feed inclusions to rsync

2001-02-12 Thread Otto Wyss
Is it possible to use pipes when specifying an inclusion list of files? I.e. is the following statement possible rsync -aLPv --include-from - --exclude '*' [source] [destination] where the - after --include-from denotes STDIN. Is there another way or syntax to do this? I'd like to use such a sta

Re: Handling of sym-/hardlinks (using -L instead -l)

2001-01-31 Thread Otto Wyss
> > I'd like to use -L where I used -l so all the rsync'ed sym-/hardliks get > > replaced with the file the links actually pointing to. > > > > How does rsync handle this situation? A full download isn't necessary > > since the file is already there. Do I have to do the replacement (move) > > myse

Handling of sym-/hardlinks (using -L instead -l)

2001-01-30 Thread Otto Wyss
I'd like to use -L where I used -l so all the rsync'ed sym-/hardliks get replaced with the file the links actually pointing to. How does rsync handle this situation? A full download isn't necessary since the file is already there. Do I have to do the replacement (move) myself or does rsync handle

Transfering File List

2001-01-30 Thread Otto Wyss
I've come across this thread lately and would apreciate an option "--files-from -", so I could pipe the filenames from a perl script to rsync. Since this option certainly needs the full path with filename, does this path starts at the end of the server URL? I.e. rsync -a --files-from - ftp.de.deb

Include-from does not work

2001-01-04 Thread Otto Wyss
I want to mirror any i386 packages from a debian package mirror with the following command rsync -avvP --include-from="file" ftp.at.debian.org::debian-ftp/debian-non-US/pool/non-US/main /mirror/debian/non-US/main while "file" contains +"_all" +"_i386" -"*" +"*/" But the -"*" does not work, all