homepage Welcome to WebmasterWorld Guest from 54.82.1.136
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
Home / Forums Index / WebmasterWorld / The Macintosh Webmaster
Forum Library, Charter, Moderators: travelin cat

The Macintosh Webmaster Forum

    
File Sync Software
aaronjf




msg:3779511
 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




msg:3779556
 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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved