Skip to content

Bulk Download of Person/Org Attachments#41

Open
sshadminBW wants to merge 1 commit intobitwarden-labs:mainfrom
sshadminBW:BulkDownload_Attachments
Open

Bulk Download of Person/Org Attachments#41
sshadminBW wants to merge 1 commit intobitwarden-labs:mainfrom
sshadminBW:BulkDownload_Attachments

Conversation

@sshadminBW
Copy link
Copy Markdown

feat: Add Bitwarden vault attachment bulk downloader

Add comprehensive bash script for downloading all attachments from Bitwarden vaults with support for both personal and organization vaults.

Features:

  • Support for personal vault and organization vault downloads
  • Interactive mode with vault type selection menu
  • Command-line argument support for automation
  • Automatic filename prefixing with item names to prevent duplicates
  • Filename sanitization for filesystem compatibility
  • Color-coded terminal output with progress indicators
  • File size display during downloads
  • Detailed download summary with success/failure counts
  • Multi-region support (US Cloud, EU Cloud, Self-hosted)
  • Session token validation and automatic unlock prompts
  • Organization listing and auto-selection for single-org accounts

Prerequisites:

  • Bitwarden CLI (bw)
  • jq for JSON processing
  • bc for file size calculations (optional)

Usage examples:

  • Personal vault: ./download_bw_attachments.sh --type personal
  • Organization vault: ./download_bw_attachments.sh --type org --org-id
  • Interactive mode: ./download_bw_attachments.sh
  • List orgs: ./download_bw_attachments.sh --list-orgs

Technical improvements:

  • Uses process substitution instead of pipes to maintain counter state
  • Filters personal items with jq select filter for reliable results
  • Comprehensive error handling and user feedback
  • Extensive inline documentation and usage examples

feat: Add Bitwarden vault attachment bulk downloader

Add comprehensive bash script for downloading all attachments from Bitwarden vaults with support for both personal and organization vaults.

Features:
- Support for personal vault and organization vault downloads
- Interactive mode with vault type selection menu
- Command-line argument support for automation
- Automatic filename prefixing with item names to prevent duplicates
- Filename sanitization for filesystem compatibility
- Color-coded terminal output with progress indicators
- File size display during downloads
- Detailed download summary with success/failure counts
- Multi-region support (US Cloud, EU Cloud, Self-hosted)
- Session token validation and automatic unlock prompts
- Organization listing and auto-selection for single-org accounts

Prerequisites:
- Bitwarden CLI (bw)
- jq for JSON processing
- bc for file size calculations (optional)

Usage examples:
- Personal vault: ./download_bw_attachments.sh --type personal
- Organization vault: ./download_bw_attachments.sh --type org --org-id <ID>
- Interactive mode: ./download_bw_attachments.sh
- List orgs: ./download_bw_attachments.sh --list-orgs

Technical improvements:
- Uses process substitution instead of pipes to maintain counter state
- Filters personal items with jq select filter for reliable results
- Comprehensive error handling and user feedback
- Extensive inline documentation and usage examples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant