Hello,
I am trying to implement exclusion rules for site backups created by the WordPress Toolkit (WP2) in aaPanel. However, I have encountered the following issues:
- The backup logic for WP2 sites is handled by the
wp_toolkit module, specifically through a wpbackup object and its backup_full_get_data method.
- The actual implementation of this logic is inside
core.py, which is obfuscated and cannot be inspected or modified.
- I attempted to determine if the backup process calls external scripts (such as
/www/server/panel/script/backup), but testing shows this script is not invoked during WP2 backups.
- As a result, I am unable to add or debug exclusion support for WP2 site backups, unlike standard site backups where exclusion rules work as expected.
Request:
Could you please provide either:
- Documentation or source code for the WP2 backup logic, or
- A way to add or configure exclusion rules for WordPress Toolkit site backups?
Thank you!