homepage Welcome to WebmasterWorld Guest from 54.211.68.132
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / WebmasterWorld / The Macintosh Webmaster
Forum Library, Charter, Moderators: travelin cat

The Macintosh Webmaster Forum

    
File Sync Software
aaronjf

10+ Year Member



 
Msg#: 3779509 posted 10:21 pm on Nov 3, 2008 (gmt 0)

On PCs there is a function that allows you to sync something on your PC to an external disk every time you plug the drive in. Has anyone seen software like that for the Mac? I have "File Synchronization", but looking for something with more automatic functionality like mentioned above.

 

swa66

WebmasterWorld Senior Member swa66 us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3779509 posted 11:33 pm on Nov 3, 2008 (gmt 0)

OS X comes with a command line unix tool call rsync: it can (even on remote hosts) mirror a slave to a master copy. There's dozens of options.

You could do a multi-pass script, or jsut go for a single pass master/slave.

rsyc has a mutitude of options: check them with either
$ rsync --help
$ man rsync

I'm sure it can be automated on plug-in as well.

e.g.:

$ rsync --recursive --times --update --delete ~/Desktop/sync /Volumes/REMOVABLE

To see what it's doing add --verbose, to see what it would do, without doing it, also add --dry-run

It'll only copy the parts of the files that are needed.

To do a two way sync you need some more of the options and really understand the impact of what you do. Esp deleting files is tricky as you need to decide if a file is either deleted, or either added on the other store.

Hence to do a full two way sync with deletes requires stats to be kept to at least determine the time it was last run and clocks being set appropriately.
Still, a simple script could achieve it.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / The Macintosh Webmaster
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved