Test: end-to-end backup flow (full/database/files) #1

Open
opened 2026-06-02 20:29:18 +00:00 by jmiller · 1 comment
Owner

Verify the complete backup pipeline works for all three backup types.

Scope

  • Full site backup (database + files)
  • Database-only backup
  • Files-only backup
  • Verify archive contents and backup record metadata

Acceptance Criteria

  • Full backup creates ZIP with database.sql + all site files
  • Database-only creates ZIP with only database.sql
  • Files-only creates ZIP without database.sql
  • Backup record shows correct status, size, counts
  • Archive filename: {hostname}_{timestamp}_profile{N}.zip
Verify the complete backup pipeline works for all three backup types. ## Scope - Full site backup (database + files) - Database-only backup - Files-only backup - Verify archive contents and backup record metadata ## Acceptance Criteria - [ ] Full backup creates ZIP with database.sql + all site files - [ ] Database-only creates ZIP with only database.sql - [ ] Files-only creates ZIP without database.sql - [ ] Backup record shows correct status, size, counts - [ ] Archive filename: `{hostname}_{timestamp}_profile{N}.zip`
jmiller added the type: testingpriority: criticalcomponent: enginestatus: ready labels 2026-06-02 20:29:18 +00:00
Author
Owner

Testing Plan

Pre-requisites

  • Fresh Joomla 5 install with sample data
  • MokoJoomBackup installed, default profile exists

Test Cases

TC-1.1: Full site backup

  1. Navigate to Components > MokoJoomBackup > Backup Records
  2. Click 'Backup Now'
  3. Verify backup completes without errors
  4. Download ZIP, verify it contains database.sql + Joomla files
  5. Verify excluded dirs (tmp, cache, logs) are NOT in archive
  6. Verify record: status=complete, files_count > 0, tables_count > 0

TC-1.2: Database-only backup

  1. Create profile with type 'Database Only'
  2. Run backup, download ZIP
  3. Verify ZIP contains ONLY database.sql
  4. Verify record: files_count=0, tables_count > 0

TC-1.3: Files-only backup

  1. Create profile with type 'Files Only'
  2. Run backup, download ZIP
  3. Verify ZIP does NOT contain database.sql
  4. Verify record: files_count > 0, tables_count=0

TC-1.4: Failed backup

  1. Set backup_dir to non-writable path
  2. Attempt backup
  3. Verify status=fail with error in log

TC-1.5: Filename format

  1. Run backup, verify filename: {hostname}_{YYYYMMDD}_{HHmmss}_profile{N}.zip
## Testing Plan ### Pre-requisites - Fresh Joomla 5 install with sample data - MokoJoomBackup installed, default profile exists ### Test Cases **TC-1.1: Full site backup** 1. Navigate to Components > MokoJoomBackup > Backup Records 2. Click 'Backup Now' 3. Verify backup completes without errors 4. Download ZIP, verify it contains database.sql + Joomla files 5. Verify excluded dirs (tmp, cache, logs) are NOT in archive 6. Verify record: status=complete, files_count > 0, tables_count > 0 **TC-1.2: Database-only backup** 1. Create profile with type 'Database Only' 2. Run backup, download ZIP 3. Verify ZIP contains ONLY database.sql 4. Verify record: files_count=0, tables_count > 0 **TC-1.3: Files-only backup** 1. Create profile with type 'Files Only' 2. Run backup, download ZIP 3. Verify ZIP does NOT contain database.sql 4. Verify record: files_count > 0, tables_count=0 **TC-1.4: Failed backup** 1. Set backup_dir to non-writable path 2. Attempt backup 3. Verify status=fail with error in log **TC-1.5: Filename format** 1. Run backup, verify filename: `{hostname}_{YYYYMMDD}_{HHmmss}_profile{N}.zip`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoJoomBackup#1