Re: Simple Backup Script
Re: Simple Backup Script
- Subject: Re: Simple Backup Script
- From: Gnarlodious <email@hidden>
- Date: Thu, 27 Oct 2005 09:51:57 -0600
- Thread-topic: Simple Backup Script
Title: Re: Simple Backup Script
Entity John Cochrane spoke thus:
> On 27/10/2005, at 9:35 AM, Gnarlodious wrote in glorious technicolour:
LOL. Most people hate my colors...
>> This script uses rsync to incrementally synchronize some folder to an
>> ejectable disk, one way. Due to minor changes in rsync this script does not
>> work in 10.4.
>
> I was about to try to produce a script to use rsync on Tiger to backup
> mutiple folders over a network. I was disappointed to hear about problems with
> rsync in 10.4.
This is why you should have included your OS ersion when you asked your question.
There isn't really any "problem" with rsync in 10.4 except that it's improved. It adds "extended attribute" support, which means HFS filesystems are now recognized, which is good for Mac users.
I would add a few lines like this:
set rsyncDryRun to true
set rsyncOptionsString to "Ea"
set rsyncExcludeString to " --exclude=Cache?/ --exclude='Temporary Items/' --exclude=.Spotlight* --exclude=.Trash*"
set rsyncCmdBase to "rsync -" & rsyncOptionsString
The Ea option is for "Extended Attributes"
Then make a command string like this:
set cmd to rsyncCmdBase & space & the quoted form of POSIX path of sourceFolder & space & the quoted form of POSIX path of targetDisk & space & rsyncExcludeString & " --delete --update --progress"
delete=will delete on the target disk any items that do not exist on the source disk
update=will overwrite older files with newer files
progress=will show in Terminal how the copying is going
-- Gnarlie's Applescript page:
http://Gnarlodious.com/Apple/AppleScript/
_______________________________________________
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