rsync to an external drive.icloudpd, as described below.The recommended way is to backup all your original iCloud media using the iCloud Photo Downloader Python utility icloudpd. It downloads all photos from your iCloud account via the CLI. This means all photos as well as all videos (so make sure you have enough hard disk space!):
brew install icloudpd
mkdir icloud-photos
icloudpd -d icloud-photos -u YOUR-ICLOUD-EMAIL-ID@icloud.com
… then follow prompts.
Alternatively, you can just reference macOS’s default Photos Library, which is located at ~/Pictures/Photos Library.photoslibrary/
This single package contains:
Masters or Originals)Important: Do not copy individual subfolders inside the package. Always copy the full
.photoslibrarypackage.
Use rsync to copy your library to an External Drive.
Assuming your external backup drive is mounted at /Volumes/bak and contains a Pictures/ subfolder, you can back up the library as follows:
# Close Photos app before running
rsync -avh --perms --delete ~/Pictures/Photos\ Library.photoslibrary/ /Volumes/bak/Pictures/
Explanation of options:
-a : Archive mode (preserves permissions, symbolic links, timestamps)-v : Verbose output-h : Human-readable numbers--perms : Preserve file permissions--delete : Delete files on the destination that no longer exist on the sourceThis creates an exact copy of your Photos Library in
/Volumes/bak/Pictures/.
To restore the library:
~/Pictures:rsync -avh --progress /Volumes/bak/Pictures/Photos\ Library.photoslibrary ~/Pictures/