You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,9 @@ Options:
118
118
combine with --auto-delete option.
119
119
--domain [com|cn] What iCloud root domain to use. Use 'cn' for
120
120
mainland China (default: 'com')
121
+
--watch-with-interval INTEGER RANGE
122
+
Run downloading in a infinite cycle, waiting
123
+
specified seconds between runs [x>=1]
121
124
--version Show the version and exit.
122
125
-h, --help Show this message and exit.
123
126
```
@@ -180,9 +183,20 @@ This error often happens because your account hasn't used the iCloud API before,
180
183
181
184
If you are still seeing this message after 30 minutes, then please [open an issue on GitHub](https://github.com/icloud-photos-downloader/icloud_photos_downloader/issues/new) and post the script output.
182
185
183
-
## Cron Task
186
+
## Watching iCloud for changes
184
187
185
-
You can run `icloudpd` using `cron` on platforms that support it:
188
+
Most used scenario is to run `icloudpd` to periodically download new photots from iCloud. This can be achieved with parameter or external `cron` task.
189
+
190
+
> If you provide SMTP credentials, the script will send an email notification
191
+
> whenever two-step authentication expires.
192
+
193
+
### With `--watch-with-interval` parameter
194
+
195
+
You can use `--watch-with-interval` parameter to keep `icloudpd` watching for iCloud changes. `icloudpd` will indefinately repeat downloading instructions with specified pause between them, except for authentication, which is performed only once.
196
+
197
+
### With Cron task
198
+
199
+
Alternatively, you can run `icloudpd` using `cron` on platforms that support it:
186
200
187
201
- copy the example cron script from source tree, e.g. `cp cron_script.sh.example cron_script.sh`
188
202
@@ -196,8 +210,7 @@ You can run `icloudpd` using `cron` on platforms that support it:
196
210
197
211
Now the script will run every 6 hours to download any new photos and videos.
198
212
199
-
> If you provide SMTP credentials, the script will send an email notification
0 commit comments