Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Rsync question with iphoto

Featured Replies

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

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.

  • Author

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?

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.

  • Author

Well I am looking at grsync but not sure of what options I need to check

  • Author

Guess no one can make a script

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.