Enhance cloud storage handling and configuration documentation
- Updated `ssr.conf.example` to clarify the usage of `SSR_CLOUD_PATH` for custom cloud providers, including examples for handling multiple folders. - Introduced `ssr::cloud::resolve_storage_pattern` function in `lib/cloud.sh` to improve directory resolution for cloud storage providers, ensuring proper handling of multiple matches. - Refactored `ssr::cloud::resolve_dir` to utilize the new storage resolution function, enhancing error handling and user feedback for cloud directory detection.
This commit is contained in:
@@ -9,7 +9,12 @@
|
||||
# Provider: icloud | dropbox | googledrive | onedrive | custom
|
||||
SSR_CLOUD_PROVIDER=icloud
|
||||
|
||||
# Only used when SSR_CLOUD_PROVIDER=custom. Absolute path.
|
||||
# Absolute path. Required for SSR_CLOUD_PROVIDER=custom.
|
||||
# For onedrive / googledrive / dropbox: if macOS has more than one matching
|
||||
# folder under ~/Library/CloudStorage (e.g. "OneDrive" and "OneDrive - Adobe"),
|
||||
# you must set SSR_CLOUD_PATH to the root you want so SSR does not pick at random.
|
||||
# Example (quote if the folder name contains spaces):
|
||||
# SSR_CLOUD_PATH="/Users/you/Library/CloudStorage/OneDrive - Adobe"
|
||||
# SSR_CLOUD_PATH=/Volumes/MyNAS/macos-sync
|
||||
|
||||
# Subfolder inside the cloud root for SSR data: per-host backups live under
|
||||
|
||||
Reference in New Issue
Block a user