squirrellydw Posted September 13, 2010 Share Posted September 13, 2010 I would like to back up/sync my iPhoto library on my Mac to unraid. If I add, delete or change photos in iPhoto on my Mac I would like those changes to sync to unraid. I would like to be able to run this manually with a script, can rsync do this? Can a script do this? Thanks Link to comment
timsutton Posted September 14, 2010 Share Posted September 14, 2010 I do this for my Lightroom catalog with this command: rsync -avhPE --delete --exclude *Previews.lrdata --exclude .DS_Store /path/to/backup/folder/ root@unraid:/mnt/user/photo Assuming I have a passwordless key login working, this is a non-interactive command. --delete keeps the unraid backup as a mirror, so files I delete locally get deleted on the backup. I have a couple filename patterns that are excluded as well, for example all the previews I don't need taking up more space. The -a archive option takes care of a bunch of metadata things I believe, but someone please suggest if you've more appropriate arguments to pass to rsync.. I'm a bit paranoid about all the right Mac filesystem attributes getting properly copied. Bombich has an article about the flags for a verifiable Mac backup but I find most of those options no longer exist or have been encompassed in other options. If you want to run this regularly, you can wrap this in a shell script and then make a LaunchAgent or LaunchDaemon for it to run at a scheduled interval. Link to comment
squirrellydw Posted September 14, 2010 Author Share Posted September 14, 2010 I would really just like it to be some sortof apple script that I can run when I need it. I just don't know how to make it. I don't know how rsync works either, I assume it would scan the iphoto directory than update those changes in unraid. Can anyone make on for me or tell me how to do it? Link to comment
timsutton Posted September 14, 2010 Share Posted September 14, 2010 There's a lot of rsync GUIs out there, if you google it. There's also Platypus, a wrapper for turning a script into an app. My "script" is literally just one line, aside from the header: #!/bin/sh rsync command Once in a while I just open terminal and type "photo-sync.sh" which is what I named my script, and placed it in /usr/local/bin. Or, you can paste the rsync command into a plain text editor, save it with a ".command" extension, and Finder should recognize it — you might need to set its permissions to executable. Then it's a double-click. You can make it automatically run at login, put it in your dock, whatever. Link to comment
squirrellydw Posted September 15, 2010 Author Share Posted September 15, 2010 Well I am looking at grsync but not sure of what options I need to check Link to comment
squirrellydw Posted September 17, 2010 Author Share Posted September 17, 2010 Guess no one can make a script Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.