Prerequisites #
docker
installed
Instructions #
-
Open a command-line shell.
- macOS/Linux:
Terminal
- Windows:
Command Prompt
- macOS/Linux:
-
Create a directory in your home directory.
- macOS/Linux:
mkdir -p $HOME/Photo_Backups
- Windows:
mkdir -p %USERPROFILE%/Photo_Backups
- macOS/Linux:
-
Change the current directory to the newly created backup directory.
- macOS/Linux:
cd $HOME/Photo_Backups
- Windows:
chdir /D "%USERPROFILE%\Backups"
- macOS/Linux:
-
Run the command below. Ensure you replace the environment variable placeholder values with your iCloud username and password as environment variables.
1ICLOUD_USER="my_icloud_account@icloud.com" \ 2ICLOUD_PASS="my_icloud_password123" \ 3docker run -it --rm --name icloudpd \ 4 -v $(pwd)/Photos:/data \ 5 -v $(pwd)/cookies:/cookies \ 6 -e TZ=America/Los_Angeles \ 7 icloudpd/icloudpd:latest \ 8 icloudpd --directory /data \ 9 --cookie-directory /cookies \ 10 --folder-structure {:%Y/%Y-%m-%d} \ 11 --size original \ 12 --username "$ICLOUD_USER" --password "$ICLOUD_PASS"