Re: Rsync reliability?
Re: Rsync reliability?
- Subject: Re: Rsync reliability?
- From: Gnarlodious <email@hidden>
- Date: Tue, 01 Nov 2005 22:21:06 -0600
- Thread-topic: Rsync reliability?
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden