Cara Backup dan Restore WordPress Lengkap
WordPress Backup Complete Guide
Backups are your insurance policy. Never skip them!
Why Backups Critical
Real Disasters
- Sites hacked daily
- Bad updates break sites
- Human errors happen
- Server failures occur
- Database corruptions
Without backup = Lose everything
With backup = Restore in minutes
What to Backup
Complete Backup Includes
Database (5-50MB)
- Posts, pages, comments
- User accounts, settings
- Backup daily
Files (500MB-5GB+)
- Themes, plugins, uploads
- wp-config.php, .htaccess
- Backup weekly
Backup Methods
Method 1: UpdraftPlus Plugin (Recommended)
Setup:
- Install UpdraftPlus
- Settings → UpdraftPlus Backups
- Files: Weekly, Database: Daily
- Choose cloud storage (Google Drive)
- Authorize connection
- Save settings
First Backup:
Click “Backup Now” → Select both files and database → Wait for completion
Automatic: Runs on schedule, no action needed!
Method 2: Manual via cPanel
Database Backup:
- cPanel → phpMyAdmin
- Select database
- Export → Go
- Download SQL file
Files Backup:
- cPanel → File Manager
- Select wp-content folder
- Compress → Download ZIP
- Also download wp-config.php and .htaccess
Method 3: FTP Manual
- Connect via FileZilla
- Download entire WordPress folder
- Export database via phpMyAdmin
- Store both securely
Backup Schedule
Recommended Frequency
Database:
- High-traffic: Daily
- Medium: 2-3x per week
- Low: Weekly
Files:
- Active site: Weekly
- Stable: Monthly
Retention:
Keep 4-8 recent backups
Cloud Storage Options
Best Services
- Google Drive (15GB free)
- Dropbox (2GB free)
- Amazon S3 (pay-as-you-go)
- pCloud (10GB free)
Always store backups off-site!
Restore Process
Using UpdraftPlus
Full Restore:
- Install fresh WordPress
- Install UpdraftPlus
- Settings → Existing Backups
- Upload backup files OR connect cloud
- Click “Restore”
- Select components to restore
- Restore → Wait
- Done!
Partial Restore:
Restore only specific components (database OR files)
Manual Restore
Database:
- phpMyAdmin → Select database
- Import → Choose SQL file
- Go
Files:
- Upload via FTP
- Extract if zipped
- Overwrite existing files
wp-config.php:
Update database credentials if changed
Testing Backups
Monthly Test
- Download latest backup
- Restore on staging/local
- Verify everything works
- Test database integrity
- Check images display
- Test forms work
Never assume backups work - TEST THEM!
Backup Best Practices
Do’s
- Automate backups
- Store off-site (cloud)
- Test restores regularly
- Keep multiple versions
- Backup before updates
- Document restore process
Don’ts
- Store only on same server
- Never test backups
- Keep just one backup
- Ignore backup failures
- Forget database
Troubleshooting
Backup Fails
- Check disk space
- Increase PHP limits
- Check permissions
- Try smaller chunks
- Contact host
Restore Fails
- Verify file integrity
- Check database size
- Increase memory limit
- Use different method
- Seek expert help
Backup Checklist
Before Disaster:
- Automated daily/weekly backups
- Cloud storage configured
- Tested restore process
- Multiple backup copies
- Documented procedures
After Disaster:
- Restore from backup
- Check functionality
- Review what went wrong
- Improve backup strategy
- Update documentation
Conclusion
Backup strategy summary:
- Daily database backups
- Weekly file backups
- Store in cloud (off-site)
- Keep 4-8 versions
- Test monthly
- Automate everything
Set it up today. Your future self will thank you!
Link Postingan : https://www.tirinfo.com/cara-backup-dan-restore-wordpress-lengkap/