Re: Rsync reliability?
Re: Rsync reliability?
- Subject: Re: Rsync reliability?
- From: Robert Nicholson <email@hidden>
- Date: Wed, 2 Nov 2005 09:41:51 -0600
/usr/bin/rsync --extended-attributes --temp-dir=/tmp --archive --
verbose --times --progress --delete --delete-excluded --exclude-
from=./backup_excludes.txt / /Volumes/Backup/annie/
./backup.sh: line 30: 1226 Bus error /usr/bin/rsync --
extended-attributes --temp-dir=/tmp --archive --verbose --times --
progress --delete --delete-excluded --exclude-from=./
backup_excludes.txt $* / /Volumes/Backup/annie/ >$HOME/backup.log 2>&1
building file list ...
1145007 files to consider
rsync: writefd_unbuffered failed to write 86 bytes: phase
"unknown" [receiver]: Broken pipe (32)
rsync error: error in rsync protocol data stream (code 12) at /
SourceCache/rsync/rsync-20/rsync/io.c(909)
On Nov 1, 2005, at 10:21 PM, Gnarlodious wrote:
Entity Robert Nicholson spoke thus:
Here's how it fails for me
+ /usr/bin/rsync --extended-attributes --temp-dir=/tmp --archive --
verbose --times --progress --delete --delete-excluded --exclude-
from ./backup_excludes.txt / /Volumes/Backup/annie/
Since you are missing an "=" between the "--exclude-from" option
and the
parameter "./backup_excludes.txt", rsync assumes you want to copy the
"./backup_excludes.txt" file to the "/" folder. This leaves an
extraneous
filepath to trip rsync.
All this is off-topic for Applescript, but let me give you a few
pointers.
Always start with a simple command and add options incrementally so
you can
see where it breaks.
A simple command would look like:
rsync -av 'sourcePath' 'targetPath' ... longOptions
Try to use the standard shell command format for better
readability, that
means the command, an options string, path1, path2 and then all
your GNU
long options which are wrecking your scripts readability all at the
front
end. I didn't even know they would work in the front, that'snot how
the UNIX
pros do it.
I also enclose all my paths in single quotes so they can contain space
characters. rsync does nor recognize normal escaped paths because the
command is made to send the paths to a remote machine which may not
reliable
handle escaped parameters.
Hope that makes sense.
-- Gnarlie
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40elastica.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden