Replies: 7 comments 22 replies
-
Thanks for the feedback. On a NASA you must use OSXPhotos is not optimized for NAS. There is an open issue to have NAS auto detected but this is low priority. OSXPhotos is also not optimized for Optimize Mac Storage. You could probably speed this up with I'm sorry it never completed for you. I've successfully exported larger libraries than yours with no problem. But I only use fast locally and attached storage. |
Beta Was this translation helpful? Give feedback.
-
Thanks for responding. I added the flags |
Beta Was this translation helpful? Give feedback.
-
I've been using osxphotos on a 100K pics Library into NAS Synology successfully for a few year already 😄 ! I also use --cleanup to delete any pics on the exported folder that I happen to delete from Photos. I don't use --photo-kit. I don't use iCloud storage or the need for downloading images from iCloud due to the "Optimize Mac Storage"... which I believe can slow things down. First backup can take time.. especially if you have videos. I have 1 GBPs network and my exports can take on first export,or when a large number of files need to be updated, 8~10 hours for ~100K pics. but subsequent daily's with a few thousands pics changed requiring update/copy sits around 4 hours. From these somehow outdated tests (#582 (comment)) on 1GB LAN it was taking about 0.3 seconds per pic (not huge Videos!) which would yield ~16.6 hours for 200K pics. If you incorporate --verbose and --timestamp options you get an output like the following and track progress and performance. In the example below it tells you:
(...)
2024-10-21 16:27:25.604177 -- Exporting XXX.HEIC (XXX.HEIC) (89000/107186)
2024-10-21 16:27:25.697627 -- Skipped up to date file /Volumes/photo/XXX.HEIC
2024-10-21 16:27:25.705689 -- Exporting ZZZ.JPG (ZZZ.JPG) (89001/107186)
2024-10-21 16:27:25.807583 -- Skipped up to date file /Volumes/photo/ZZZJPG
(...)
2024-10-21 16:27:11.212614 -- Exporting IMG_WRITTEN.jpg (IMG_WRITTEN.jpg) (107082/107186)
2024-10-21 16:27:11.327217 -- Writing metadata with exiftool for IMG_WRITTEN.jpg
2024-10-21 16:27:11.488014 -- Exported IMG_WRITTEN.jpg.jpg to
(...)
2024-10-21 16:27:26.256606 -- Elapsed time: 4:36:09
(...)
2024-10-21 16:27:26.303988 -- Cleaning up /Volumes/photo
2024-10-21 16:31:36.375673 -- Deleting /Volumes/photo/TTTjpeg
2024-10-21 16:32:59.701735 -- Deleted: 1 file, 0 directories |
Beta Was this translation helpful? Give feedback.
-
@RhetTbull and @oPromessa thank you again for your suggestions and feedback. I let OSXPhotos run overnight with the following command line:
Which backed up 11987 files in 11 hours and 28 minutes which is about 17 seconds per file. I'm going to start a second export run this morning (changing to
When I said "start from zero" I mean that every export always starts with a line like:
So it's not possible to see how much of the library has already been exported by previous runs. I thought that each subsequent run would be slightly faster as it should be skipping files that have already been exported--and I can see messages in the log that it is skipping files--but the speed of the export seems to be roughly the same even with skipped files meaning that it never reaches the end. Thanks for the tip about iCloud Photos Downloader. I had already experimented with it before discovering OSXPhotos. I was uncomfortable with the stability of their approach which is basically screen-scrapping iCloud.com and concerned about the potential for getting my account locked for using it. (Probably being paranoid, but it's certainly not an "Apple approved" method for downloading your photos). I think OSXPhotos has a more robust architecture and uses the official PhotoKIt API (or AppleScript) for downloading photos. Also, OSXPhotos is the only tool I'm aware of that has an import feature that allows importing an exported archive of photos back into a Photo library. |
Beta Was this translation helpful? Give feedback.
-
There are some very very odd networking issues going on with Sequoia right now. I've experienced two, one of which I'll describe at the end for the curious. I've also seen many reports of users having issues with NASs and Sequoia. Googling "Sequoia Networking" or "Sequoia networking issues" will show plenty of issues. Not saying that this has anything to do with what the OP is running into, but it bears at least some consideration. Definitely impacting NAS usage as well. The more interesting issue I had (still have!) is iMessage not working with VPN on one Mac, and only this one Mac. Same OS and VPN (and version) on all other Macs, no issue, but for this Mac, iMessage just doesn't work. For a while it worked when I turned the VPN off, but then it stopped working at that point too. I escalated to Apple at that point and my call was escalated within Apple, it was a 2+ hour data collection fun-fest. They know and acknowledge this is a bug, but as of 2 weeks ago, they were still very confused as to what was happening. Folks are pointing to the firewall, but during the call we turned it on and off and lots of other combinations and it had no effect. While yes this is an Internet issue, I've run into odd LAN issues as well that are hard to quantify. 15.0.1 did not fix any of the issues I have or have seen. |
Beta Was this translation helpful? Give feedback.
-
Here's the end of the log of my last run with the profiling data. I am not using Sequoia. The
I can see how this would hurt performance especially when connecting to a NAS. If you made the assumption that OSXPhotos was the only writer to the export directory and no modifications were being made to files by the user you could you rely entirely on the exportedb without checking the photo files to see if it has changed?
To be clear I didn't meant that the backup hung or crashed, rather that I was never able to run a en export to completion after multiple runs over many days. Due to the way progress is reported it was difficult to tell how much of the library has already been exported and it seems that that on a NAS resuming an export is not significantly faster than the first export. It sounds like
|
Beta Was this translation helpful? Give feedback.
-
@gerdemb Not sure if this will be helpful at all as it seems you already have optimized speed / connection between your NAS and Mac. If you haven't you may want to see some of the info in these two posts: Post 1 and Post 2 especially if you are using SMBv1. |
Beta Was this translation helpful? Give feedback.
-
Hello!
I've been testing osxphotos to back up my photo library to my NAS, and I wanted to share some feedback and my experiences with the tool. My use case is to back up my entire library to my NAS. I have 267,296 items in my library that take up 1.3TB of storage in iCloud with "Optimize Storage" enabled.
First off, I've been looking for a tool like this for a long time and I want to acknowledge the incredible effort put in by the community to make osxphotos as powerful and flexible as it is. I want to emphasize that my comments are intended as constructive criticism, to help make osxphotos even better.
Initially, I found the number of command-line options a bit overwhelming as a beginner. I ended up reading all the documentation before I felt confident I had the correct combination of switches to do a full backup; however, I still wasn't entirely sure I had the right combination and it seems like the that combination could be a moving target as new versions are released. I think osxphotos would benefit from an option similar to rsync's
--archive
, which provides a sensible default combination of switches. The use case of "export my entire library while preserving as much information as possible" seems pretty standard. For reference, here's the combination of switches I settled on:Related GitHub discussions:
#1267
#1659
#1515
Another issue I encountered was with performance and progress reporting. I ran this command continuously for several hours every day for several weeks, but it never seemed to come close to completing a full export. At the beginning of each run, the export always started from zero, making it unclear how much had been completed in previous runs. On each subsequent run, I could see more "skipped up-to-date file" messages, but it seemed to take just as much time to "skip" a file as it did to back up a new one. In the end, the highest number of completed files exported was around 20,000, or about 10% of my library, despite running for 6-8 hours per day for a couple weeks. Eventually, I gave up, as it was never able to complete a full backup. I realize my library is probably larger than average, which could have contributed to the performance issues. Or perhaps I had some setting wrong?
Finally, (and I realize this is a small nitpick), CTRL-C wouldn't stop the export on my machine, and I always had to force-kill the process.
Thanks again to the developers and community for all the effort that has gone into making osxphotos such a useful tool. I hope my feedback can help improve it further!
Cheers,
Ben
As an aside, after failing to complete a full backup with osxphotos, I created a simple photo backup app inspired by Time Machine. It uses the Apple PhotoKit API, so it lacks the advanced features that osxphotos has by reverse-engineering the Photos database, but it offers much faster performance for my large library. If you're curious, there's a link in my GitHub profile.
Beta Was this translation helpful? Give feedback.
All reactions