Data cleanup process on restored site for testing
Steps for Data cleanup process on restored site for testing
- Backup database (and files if required) Preferred not to restore site_config.json but make manually changes and do not bring in encryption_key
- Restore database using bench command and flags for restoring private and public files.
- Remove unnecessary apps using bench remove-from-installed-apps
- Get latest frappe and erpnext apps and all other dependent apps
- bench restart & bench build to reflect updated apps.
- bench migrate to apply latest apps on the restored site.
- Reset Administrator password using bench
- Disable all scheduled activities like webhooks, bulk webhooks, scheduled jobs, email accounts, etc.