Re: rsync and backup
Re: rsync and backup
- Subject: Re: rsync and backup
- From: Matthew Smith <email@hidden>
- Date: Wed, 09 Aug 2006 14:36:27 +1000
- Thread-topic: rsync and backup
On 09/08/2006 14:19, "John Cochrane" <email@hidden> wrote:
> I have been testing a scripts to sync a large folder of many items to a
> mounted volume over a slow Airport network.
>
> If I use rsync (with thanks to Gnarlie)
> do shell script " rsync -Eavz 'sourcePosixPath' 'destinationPosixPath'
> --delete --progress"
> all works well but the syncing (even after the initial run) takes about
> 45-50 minutes.
> Using the terminal is not much better.
>
> If I use the backup command (thanks to Emmanuel's Satimage osax)
> backup sourceAlias to destinationAlias level 2
> then the sync only takes about 2 minutes - great improvement.
> The only problem is that the 'backup' command does not delete items
> from the destination that are not in the source folder, which is what I
> would like.
>
> I am puzzled as to why the rsync command is so much slower. Any
> suggestions how I might achieve syncing at backup's blinding speed
> while deleting folders would be greatly appreciated.
You don't say what your sourcePosixPath and destinationPosixPath are. If one
of them is the remote volume locally mounted then this will slow down rsync
as it will be reading the remote files on the local machine. This form is
okay when using local volumes for backup. You need to use one of the network
forms for the path so that rsync runs also runs on the remote machine. I've
never used rsync over a network. I don't have 2 computers where I can do
this. I am not sure of the exact syntax that will work, but looking at the
man page for rsync it shows:
rsync [OPTION]... SRC [SRC]... [USER@]HOST::DEST
--
Matthew Smith
_______________________________________________
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