How I automated my Photos library backup with osXPhotos #1763
Juggler00
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wanted to share how I have now (finally) implemented, tested and verified my weekly backup of my iPhoto library. First to note is that my Mac is set to download all photos. I am also relying on the fact that APFS, on a copy, creates a clone of the file. This means the following operations consume very little additional space, even though it appears I'm creating a full backup of my Photos library on disc. Thanks to @RhetTbull for this tip! (#1711)
Some quick notes:
First, I created a bash script to do the osxphotos backup, rsync the new files to my server, then notify healthchecks.io that it has completed (this way I get notified if it fails).
osx_photos_backup.sh
Next, to automate this, I created a launchd .plist file that tells my Mac when to run the above script (in this case, Fridays at 6:00am).
com.USERNAME.photoBAckupAndArchive.plist
Now, I just need to activate the above...
Hopefully others will find this helpful. Note that if you want to make any changes to either your script or .plist, make sure you unload the plist first (i.e.
launchctl unload NAMEOFPLIST.plist
), make the change, then reload as per above.Beta Was this translation helpful? Give feedback.
All reactions