icloud_photos_downloader/examples/cron_script.sh.example

10 lines
242 B
Bash

#!/bin/bash
# Make sure it's not already running
pgrep -f icloudpd && echo "icloudpd is already running." && exit
icloudpd /your/photos/directory \
--username testuser@example.com \
--password pass1234 \
--recent 500 \
--auto-delete