Salin dan Bagikan
Cara Backup dan Restore WordPress Lengkap

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

  1. Database (5-50MB)

    • Posts, pages, comments
    • User accounts, settings
    • Backup daily
  2. Files (500MB-5GB+)

    • Themes, plugins, uploads
    • wp-config.php, .htaccess
    • Backup weekly

Backup Methods

Setup:

  1. Install UpdraftPlus
  2. Settings → UpdraftPlus Backups
  3. Files: Weekly, Database: Daily
  4. Choose cloud storage (Google Drive)
  5. Authorize connection
  6. 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:

  1. cPanel → phpMyAdmin
  2. Select database
  3. Export → Go
  4. Download SQL file

Files Backup:

  1. cPanel → File Manager
  2. Select wp-content folder
  3. Compress → Download ZIP
  4. Also download wp-config.php and .htaccess

Method 3: FTP Manual

  1. Connect via FileZilla
  2. Download entire WordPress folder
  3. Export database via phpMyAdmin
  4. Store both securely

Backup Schedule

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

  1. Google Drive (15GB free)
  2. Dropbox (2GB free)
  3. Amazon S3 (pay-as-you-go)
  4. pCloud (10GB free)

Always store backups off-site!

Restore Process

Using UpdraftPlus

Full Restore:

  1. Install fresh WordPress
  2. Install UpdraftPlus
  3. Settings → Existing Backups
  4. Upload backup files OR connect cloud
  5. Click “Restore”
  6. Select components to restore
  7. Restore → Wait
  8. Done!

Partial Restore:
Restore only specific components (database OR files)

Manual Restore

Database:

  1. phpMyAdmin → Select database
  2. Import → Choose SQL file
  3. Go

Files:

  1. Upload via FTP
  2. Extract if zipped
  3. Overwrite existing files

wp-config.php:
Update database credentials if changed

Testing Backups

Monthly Test

  1. Download latest backup
  2. Restore on staging/local
  3. Verify everything works
  4. Test database integrity
  5. Check images display
  6. 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/

Hendra WIjaya
Tirinfo
2 minutes.
8 December 2025