mirror of
https://github.com/acedanger/shell.git
synced 2025-12-05 21:40:12 -08:00
immich-backup.sh --help runs backup
#11
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @acedanger on GitHub (May 27, 2025).
Originally assigned to: @acedanger on GitHub.
Executing
./shell/immich/backup-immich.sh --helpruns the backup.I would expect to see the usage options and not running the backup logic.
@acedanger commented on GitHub (May 28, 2025):
Issue Fixed ✅
The script has been successfully updated to properly handle the flag. Instead of executing the backup when is used, the script now displays comprehensive usage information and exits cleanly.
Changes Made:
Testing Completed:
Immich Complete Backup Script
This script creates a complete backup of the Immich installation including:
CONFIGURATION:
This script requires a .env file in the parent directory with:
- DB_USERNAME=<database_username>
- DB_DATABASE_NAME=<database_name>
- UPLOAD_LOCATION=<path_to_upload_directory>
OPTIONAL B2 CONFIGURATION:
- B2_APPLICATION_KEY_ID=<your_b2_app_key_id>
- B2_APPLICATION_KEY=<your_b2_app_key>
- B2_BUCKET_NAME=<your_b2_bucket_name>
OPTIONAL WEBHOOK CONFIGURATION:
- WEBHOOK_URL=<your_notification_webhook_url>
EXAMPLES:
RESTORE INSTRUCTIONS:
https://immich.app/docs/administration/backup-and-restore/
Running cleanup... now displays help and exits
Immich Complete Backup Script
This script creates a complete backup of the Immich installation including:
CONFIGURATION:
This script requires a .env file in the parent directory with:
- DB_USERNAME=<database_username>
- DB_DATABASE_NAME=<database_name>
- UPLOAD_LOCATION=<path_to_upload_directory>
OPTIONAL B2 CONFIGURATION:
- B2_APPLICATION_KEY_ID=<your_b2_app_key_id>
- B2_APPLICATION_KEY=<your_b2_app_key>
- B2_BUCKET_NAME=<your_b2_bucket_name>
OPTIONAL WEBHOOK CONFIGURATION:
- WEBHOOK_URL=<your_notification_webhook_url>
EXAMPLES:
RESTORE INSTRUCTIONS:
https://immich.app/docs/administration/backup-and-restore/
Running cleanup... also works correctly
=== DRY RUN MODE - NO ACTUAL BACKUP WILL BE PERFORMED ===
Configuration:
Would create:
Container Status Check:
✓ immich_server: Running (would pause during backup)
✓ immich_postgres: Running
✓ Upload directory: /mnt/share/media/immich/uploads (80G)
B2 Upload Configuration:
✓ B2 configured - would upload to bucket: immich-europa
✓ B2 CLI found at: ./immich/b2-linux
=== DRY RUN COMPLETE - No files were created or modified ===
Running cleanup... provides preview functionality
The bug reported in this issue has been completely resolved. The script now behaves as expected - showing help instead of running a backup when the flag is used.