A comprehensive WordPress backup and restore plugin that creates complete backups of your website including files and database. The plugin uses a custom .megafile format for secure and efficient backup storage with enterprise-level support for files up to 50GB.
- Complete Site Backup: Full website backup including files and database
- Custom .megafile Format: Secure, compressed backup format
- 50GB File Support: Enterprise-level support for large websites
- Chunked Upload: Automatic chunked upload for reliable large file transfers
- Selective Backup: Choose what to include (database, uploads, themes, plugins)
- Smart Exclusions: Automatically exclude temporary files and existing backups
- Real-time Progress: Live progress bars and detailed logging
- Background Processing: Non-blocking operations with adaptive time management
- Flexible Restore Options: Restore from existing backups or upload new ones
- Large File Upload: Support for uploading backup files up to 50GB
- Validation System: Backup integrity checking before restore
- Step-by-step Process: Detailed restore process with progress tracking
- Safe Restoration: Comprehensive validation and error handling
- Adaptive Processing: Automatically adjusts to server limitations
- Hosting Compatibility: Optimized for shared hosting environments
- Detailed Logging: Comprehensive logging with download functionality
- Modern Interface: Intuitive admin interface with real-time updates
- Security: Built-in permission checks and secure file handling
- Fixed disk space detection issues on Altervista and similar shared hosting
- Enhanced error handling for hosting environments with limited PHP functions
- Added manual override option to disable disk space checking
- Improved logging for better debugging on shared hosting
- Added download logs button to restore tab (matching backup tab functionality)
- Improved tab navigation with proper URL parameters
- Enhanced progress reporting with more detailed status updates
- Better error messages with actionable solutions
- Robust disk space handling for unlimited hosting environments
- Enhanced debug logging with detailed server information
- Improved chunked upload reliability for large files
- Better memory and time limit management
- Go to your WordPress admin panel
- Navigate to Plugins > Add New
- Upload the plugin ZIP file
- Activate the plugin
- Access via MegaFile menu in WordPress admin
- Upload plugin files to
/wp-content/plugins/MegaBackupRestore/ - Activate through the Plugins screen in WordPress
- Configure via MegaFile menu
- Go to MegaFile > Backup tab
- Select components to backup:
- β Database
- β Uploads (media files)
- β Themes
- β Plugins
- Click Start Backup
- Monitor real-time progress
- Download completed
.megafile
- Go to MegaFile > Restore tab
- Choose restoration method:
- Existing Backup: Select from available backups
- Upload New: Upload external
.megafile(up to 50GB)
- Click Start Restore
- Monitor progress and completion
- Navigate to MegaFile > Settings
- Configure:
- File exclusions (patterns and directories)
- Compression levels
- Chunked upload settings
- Disk space checking (disable for unlimited hosting)
- Advanced options
- WordPress: 5.0 or higher
- PHP: 7.4 or higher
- Memory: Minimum 128MB (512MB+ recommended)
- Storage: Available space for backups
- Permissions: Write access to plugin directory
- β Shared Hosting (cPanel, Plesk)
- β Altervista (with special disk space handling)
- β Unlimited Hosting providers
- β VPS/Dedicated servers
- β Managed WordPress hosting
- Altervista: Automatic disk space check bypass
- Shared Hosting: Adaptive processing and chunked uploads
- Limited PHP: Graceful degradation and error handling
MegaBackupRestore/
βββ includes/
β βββ class-megabackup-admin.php # Admin interface
β βββ class-megabackup-ajax.php # AJAX handlers
β βββ class-megabackup-backup.php # Backup operations
β βββ class-megabackup-core.php # Core functionality
β βββ class-megabackup-restore.php # Restore operations
β βββ class-megabackup-scheduler.php # Scheduling
βββ assets/
β βββ css/admin.css # Admin styles
β βββ js/admin.js # Admin JavaScript
βββ backups/ # Backup storage
βββ logs/ # Operation logs
βββ tmp/ # Temporary files
βββ megabackup.php # Main plugin file
βββ README.md # This file
Problem: "Critically low disk space" error Solution:
- Go to Settings > Advanced Settings
- Enable "Skip disk space checking"
- Save settings and retry backup
Problem: Upload fails for large backup files Solution:
- Enable chunked upload in settings
- Verify server upload limits
- Use smaller chunk sizes if needed
Problem: Backup/restore stops due to server limits Solution:
- Plugin automatically adapts to server limits
- Check System Information for current limits
- Contact hosting provider for limit increases
- Download logs using "Download Log" button in any tab
- Check
logs/megabackup.logfor detailed operation history - Look for
[error]entries for specific issues
- Permission Checks: Proper WordPress capability verification
- Secure File Handling: Safe file operations and validation
- Data Sanitization: All inputs properly sanitized
- Nonce Verification: CSRF protection for all actions
- Path Validation: Prevents directory traversal attacks
- Chunked Processing: Large operations split into manageable chunks
- Memory Management: Efficient memory usage patterns
- Time Limits: Adaptive processing based on server capabilities
- Background Operations: Non-blocking user interface
- Compression: Efficient backup file compression
Contributions are welcome! Please feel free to submit a Pull Request.
- Clone the repository
- Set up local WordPress environment
- Install plugin in development mode
- Make changes and test thoroughly
For support and questions:
- Issues: Create a GitHub issue
- Documentation: Check this README
- Logs: Use the download logs feature for debugging
- New: 50GB file support with chunked upload
- New: Altervista hosting compatibility fixes
- New: Download logs button in restore tab
- Improved: Disk space detection for unlimited hosting
- Improved: Error handling and user feedback
- Improved: Admin interface consistency
- Fixed: Chunked upload validation issues
- Fixed: Disk space false positives on shared hosting
- Initial release with core backup/restore functionality
- Custom .megafile format
- Real-time progress tracking
- User-friendly admin interface
This project is licensed under the GPLv2 or later - see the LICENSE for details.
- WordPress community for best practices and standards
- Hosting providers for compatibility testing
- Users who reported issues and provided feedback
Made with β€οΈ for WordPress