osxphotos script on Synology #1400
Replies: 3 comments 20 replies
-
Hi @jeremieberrebi this is completely possible with osxphotos but will be slow as data has to go from the NAS to the Mac then back to the NAS. You'll want to use --ramdb and or --exportdb options to keep the export database in memory and store it on the Mac, respectively. See `osxphotos help export ramdb‘ Other than that everything should just work. @oPromessa is a Synology user I think so he might have some tips. |
Beta Was this translation helpful? Give feedback.
-
By the way, if you're actively using the library from the NAS, this is something Apple recommends against as Photos expects the library database to be available on a fast locally connected drive. |
Beta Was this translation helpful? Give feedback.
-
Your current export will not preserve any edited images (I assume that's intentional)? Also, you'll lose all metadata -- keywords, favorite status, albums, etc. Is this important to you? If you'd like to preserve metadata, I suggest the following: You can read the docs to see what the options do: Export: osxphotos export /Volumes/Photos\ SBackup --retry 3 --ramdb --sidecar json --directory "{folder_album,NoAlbum}" --person-keyword --keyword-template "{favorite?Favorite,}" This writes metadata to a JSON sidecar, exports to folders that match the folder/album in Photos (but puts photos in no album in "NoAlbum" folder), creates keywords for each person in the photo (persons cannot be re-imported so this at least preserves what's there...leave it off if not important to you), and creates a new keyword for all photos marked as favorites. (osxphotos cannot yet mark photos as favorites on import) Import: Create a new Photos library (quit Photos, then re-open while holding down Option) osxphotos import /Volumes/Photos\ SBackup/* --walk --sidecar --skip-dups --dup-albums --album "{filepath.parent}" --relative-to /Volumes/Photos\ SBackup/ --split-folder "/" This reads metadata from the sidecar created in step 1, skips duplicates (a photo could be in more than one album and thus a duplicate would have been exported), does add the duplicates back to the right album though (without importing a duplicate copy), creates albums and folders based on the exported path created in step 1. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have a backup of my Photo Library on my Synology DS1522+ . I would like to export all the photos directly from the Synology to the Synology.
Do you know if someone already done that? What's the best way to install the script on it?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions