Re: rsync and backup
Re: rsync and backup
- Subject: Re: rsync and backup
- From: Andrew Oliver <email@hidden>
- Date: Thu, 10 Aug 2006 12:17:52 -0700
On Aug 8, 2006, at 9:19 PM, John Cochrane wrote:
Hi Applescripters
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.
rsync first performs a scan of the local directory and of the remote
directory to build a list of files that need to be copied. For
directories that contain many files this can take a while.
What you'll probably find is that there is 43 minutes of scanning/
file comparison followed by 2 minutes of data copying. Satimage's
backup clearly doesn't use the same algorithm.
Andrew
:)
_______________________________________________
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