-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Override config path via environment variable
- Loading branch information
Showing
6 changed files
with
96 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
app: | ||
logger: | ||
# level - debug, info (default), warning or error | ||
level: debug | ||
# log filename icloud.log (default) | ||
filename: config_loaded_using_env_config_path.log | ||
credentials: | ||
# iCloud drive username | ||
username: [email protected] | ||
# Retry failed login (with/without 2FA) every 10 minutes | ||
retry_login_interval: 600 | ||
# Drive destination | ||
root: "./icloud" | ||
smtp: | ||
# If you want to recieve email notifications about expired/missing 2FA credentials then uncomment | ||
# email: [email protected] | ||
# Uncomment this if your SMTP username is different than your sender address (for services like AWS SES) | ||
# username: "" | ||
# default to is same as email above | ||
# to: [email protected] | ||
# password: | ||
# host: smtp.test.com | ||
# port: 587 | ||
# If your email provider doesn't handle TLS | ||
# no_tls: true | ||
# valid values are - global (default - uses .com) or china (uses .com.cn) | ||
region: global | ||
|
||
drive: | ||
destination: "./drive" | ||
remove_obsolete: true | ||
sync_interval: -1 | ||
ignore: | ||
- "*.psd" | ||
- .git/ | ||
filters: | ||
# File filters to be included in syncing iCloud drive content | ||
folders: | ||
- dir1/dir2/dir3 | ||
- Keynote | ||
- icloudpy | ||
- Obsidian | ||
file_extensions: | ||
# File extensions to be included | ||
- png | ||
- jpg | ||
- jpeg | ||
- md | ||
- band | ||
- xmcf | ||
photos: | ||
destination: photos | ||
remove_obsolete: false | ||
sync_interval: -1 | ||
all_albums: false # Optional, default false. If true preserve album structure. If same photo is in multpile albums creates duplicates on filesystem | ||
# folder_format: "%Y/%m" # optional, if set put photos in subfolders according to format. Format cheatsheet - https://strftime.org | ||
filters: | ||
# if all_albums is false - albums list is used as filter-in, if all_albums is true - albums list is used as filter-out | ||
# if albums list is empty and all_albums is false download all photos to "all" folder. if empty and all_albums is true download all folders | ||
albums: | ||
- "album 2" | ||
- album-1 | ||
file_sizes: | ||
# Valid values are [original, medium or thumb] | ||
- original | ||
- medium | ||
- thumb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters