Replies: 5 comments
-
Great! Glad to hear it! If you use the |
Beta Was this translation helpful? Give feedback.
-
By the way, I plan to eventually deprecate |
Beta Was this translation helpful? Give feedback.
-
Yet one more way to backup metadata would be to use osxphotos sync which is designed for syncing metadata between two different libraries but can be used on a single library. You could do this to create a backup of all the metadata:
Then if you wanted to restore tags/keywords at some point in the future, you could do this:
Or to overwrite and not merge,
Edit: there is one important difference in how this works to be aware of. The |
Beta Was this translation helpful? Give feedback.
-
Another idea I'm posting here in case others have similar issues in the future. If you regularly use |
Beta Was this translation helpful? Give feedback.
-
I can think of times I'd want all of these, so... basename=~/Dropbox/bk/photos-dump/photos-dump-$(date -I)
osxphotos query > $basename.csv
gzip $basename.csv
osxphotos query --json > $basename.json
gzip $basename.json
osxphotos sync --export $basename.db
gzip $basename.db :) |
Beta Was this translation helpful? Give feedback.
-
I was having a weird issue where some of my 'year' views didn't show up. I held down option-command and restarted Photos and rebuilt the library. That fixed it, but... mysteriously, I noticed that some of my tags vanished. I have tens of thousands of photos and I am extremely careful about my tags, so this was terrifying to me.
Thankfully, just a few days ago I'd happened to run
osxphotos dump
. So, armed with that as a 'before', and a new dump as an 'after', I was able to determine not only what tags were missing, but even which photos they were missing from. A little bit of bash scripting later (sort
,uniq
,comm
,csvcut
) and I had something I could write a loop around and add all the tags back in!osxphotos dump
going forward will be part of my daily backup script!Beta Was this translation helpful? Give feedback.
All reactions