Backup Autopopulate Manager

Purpose: Provide developer/admin instructions for inventorying, quarantining, and purging backup, old, copy, and duplicate working files in the Voice to Congress development environment.

Execution policy: This page is intentionally an instruction and report-link page. It does not run cleanup commands from the browser. Use Command Prompt or the BAT files in the development environment.

Recommended Cleanup Workflow

Step Action Safety Level Purpose
1 Inventory only Safe Creates reports only. Does not move, rename, or delete files.
2 Auto-quarantine files 3+ days old Recoverable Moves eligible backup/old/copy candidates to quarantine for review.
3 Aggressive quarantine, optional Recoverable, use carefully Includes additional review candidates. Use only after reviewing the inventory.
4 Purge quarantine after 14 days Permanent delete Deletes quarantined files after a safety waiting period.

Latest Reports

Run the inventory command first if these links do not exist or appear stale.

Copy / Paste Commands

1. Inventory Only - Safe First Step

cd /d "G:\voicetocongress.com\_architecture"
python scripts\backup_cleanup_manager_v2.py --inventory-only --min-age-days 3

2. Auto-Quarantine Old Backup Files - Recommended Routine Cleanup

Moves eligible backup/old/copy files that are 3 days old or older to quarantine. This does not permanently delete them.

cd /d "G:\voicetocongress.com\_architecture"
python scripts\backup_cleanup_manager_v2.py --auto-quarantine-old --min-age-days 3

3. Aggressive Auto-Quarantine - Use Only After Reviewing Inventory

Includes additional review candidates. This still moves files only to quarantine, but it should be used carefully.

cd /d "G:\voicetocongress.com\_architecture"
python scripts\backup_cleanup_manager_v2.py --auto-quarantine-old --min-age-days 3 --include-review

4. Purge Quarantine After 14 Days - Permanent Delete

Warning: This permanently deletes quarantined files that meet the quarantine age threshold. Run only after confirming the site works and the quarantine folder is no longer needed.
cd /d "G:\voicetocongress.com\_architecture"
python scripts\backup_cleanup_manager_v2.py --purge-quarantine --quarantine-age-days 14

BAT File Alternatives

Task BAT File
Inventory only G:\voicetocongress.com\_architecture\scripts\run_backup_cleanup_inventory_v2.bat
Auto-quarantine 3+ days old G:\voicetocongress.com\_architecture\scripts\run_backup_cleanup_auto_quarantine_3days_v2.bat
Aggressive auto-quarantine G:\voicetocongress.com\_architecture\scripts\run_backup_cleanup_auto_quarantine_3days_aggressive_v2.bat
Purge quarantine after 14 days G:\voicetocongress.com\_architecture\scripts\run_backup_cleanup_purge_quarantine_14days_v2.bat

Output Locations

Output Location
Latest inventory reports G:\voicetocongress.com\_architecture\backup_cleanup\latest
Quarantine folders G:\voicetocongress.com\_architecture\backup_cleanup\quarantine
Move logs G:\voicetocongress.com\_architecture\backup_cleanup\quarantine\...\quarantine_move_log.csv

Protection Rules

Recommended page behavior: keep this as a development/admin reference page. Do not expose cleanup execution links in public navigation.