π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[docs] Update CLI docs for --dir
Manav Rathi9f3aee02eea4
diff --git a/docs/docs/photos/faq/advanced-features.md b/docs/docs/photos/faq/advanced-features.mdindex 7556042063..ef84e98462 100644--- a/docs/docs/photos/faq/advanced-features.md+++ b/docs/docs/photos/faq/advanced-features.md@@ -34,17 +34,17 @@ Learn more in the [CLI installation guide](/photos/features/utilities/cli#instal### How do I use the CLI to export my photos? {#cli-export-photos}-The CLI supports incremental exports, which means it will only download new or changed files:+The CLI supports incremental exports, which means it will only download new or changed files. Configure the export directory for the account once, then run exports whenever you need:```bash-# Export all photos-ente export+# Configure where this account should export files+ente account update --app photos --email [email protected] --dir /path/to/backup-# Export to specific directory-ente export --dir /path/to/backup+# Export all photos to that directory+ente export-# Export specific album-ente export --album "Album Name"+# Export specific albums+ente export --albums "Album Name","Another Album"```The exports are incremental and will gracefully handle interruptions - you can safely stop and restart without re-downloading everything.@@ -62,7 +62,11 @@ The recommended approach is to use the CLI to pull data from Ente to your NAS:Example cron job for daily sync:```bash-0 2 * * * /usr/local/bin/ente export --dir /nas/ente-backup+# Run once to set up the export directory+/usr/local/bin/ente account update --app photos --email [email protected] --dir /nas/ente-backup++# Cron entry+0 2 * * * /usr/local/bin/ente export```See the [CLI NAS sync guide](/photos/features/utilities/cli#nas-sync-setup) for detailed setup.diff --git a/docs/docs/photos/features/utilities/cli.md b/docs/docs/photos/features/utilities/cli.mdindex 4d352d1d5e..91b283d0af 100644--- a/docs/docs/photos/features/utilities/cli.md+++ b/docs/docs/photos/features/utilities/cli.md@@ -53,17 +53,17 @@ This will prompt for your email and password, then store your session securely.### Exporting photos-The CLI supports **incremental exports**, downloading only new or changed files:+The CLI supports **incremental exports**, downloading only new or changed files. Set or change the destination directory per account, then run the export:```bash-# Export all photos-ente export+# Configure the export directory for your account (run once)+ente account update --app photos --email [email protected] --dir /path/to/backup-# Export to specific directory-ente export --dir /path/to/backup+# Export all photos to the configured directory+ente export-# Export specific album-ente export --album "Album Name"+# Export specific albums+ente export --albums "Album Name","Another Album"```**Key features:**@@ -81,10 +81,14 @@ For complete command documentation, see the [CLI README](https://github.com/enteYou can automate exports using cron (Linux/macOS) or Task Scheduler (Windows).-**Example cron job for daily export at 2 AM:**+Set the export directory for the account once (outside cron) and then schedule `ente export`:```bash-0 2 * * * /usr/local/bin/ente export --dir /nas/ente-backup+# Run once to set the directory the export job should use+/usr/local/bin/ente account update --app photos --email [email protected] --dir /nas/ente-backup++# Daily export at 2 AM+0 2 * * * /usr/local/bin/ente export```**Steps to set up:**@@ -108,7 +112,8 @@ The recommended approach for keeping NAS and Ente synced is to use the CLI to ****Example for daily NAS sync:**```bash-0 2 * * * /usr/local/bin/ente export --dir /nas/ente-backup+/usr/local/bin/ente account update --app photos --email [email protected] --dir /nas/ente-backup+0 2 * * * /usr/local/bin/ente export```**Important:** Two-way sync is not currently supported. The CLI only pulls data from Ente to local storage - changes to local files won't sync back to Ente.