Backing Up Your Website Files
Creating regular backups of your website files is essential for protecting your data and ensuring you can quickly recover from unexpected issues. dotCanada.com offers several methods to back up your website files through cPanel. This guide will walk you through the options and best practices.
Why Website Backups Are Critical
- Protection against data loss: Recover from accidental file deletions or modifications
- Security recovery: Restore your site if it's compromised by malware or hackers
- Easy site migration: Use backups to move your website to a different host
- Peace of mind: Know that your website data is safe and recoverable
- Testing changes: Create backups before making significant changes to your site
Backup Methods in cPanel
Method 1: Using cPanel's Backup Wizard
The Backup Wizard provides a simple interface for creating full or partial backups:
- Log in to your cPanel account at https://{hostname}.mysecureservers.com:2087
- In the search box at the top, type "Backup" or navigate to the FILES section
- Click on Backup Wizard
- Click Backup to create a new backup
- Choose the type of backup you want to create:
- Full Backup: Includes all files, databases, and email settings
- Home Directory Backup: Includes all files in your account (your website files)
- If you selected Home Directory backup, click Generate Backup
- The system will create a compressed archive of your files
- Once complete, click Download to save the backup to your computer
Method 2: Using Partial Backups
For more specific backups of just your website files:
- Log in to cPanel
- Navigate to Backup or Partial Backups
- Scroll to the "Download a Home Directory Backup" section
- Click Home Directory to start the backup
- Wait for the backup to generate (this may take some time depending on your site size)
- Your browser will download the backup file automatically, or you'll be prompted to save it
Method 3: Using File Manager to Create Custom Backups
For more selective backups of specific directories or files:
- Log in to cPanel
- Open File Manager
- Navigate to the directory you want to back up (e.g., public_html for your main website)
- Select the files or folders you want to include in your backup
- Click Compress in the top toolbar
- Choose the compression format (ZIP is recommended for best compatibility)
- Enter a name for your archive
- Click Compress File(s)
- Once the compression is complete, right-click on the archive and select Download
Scheduled Automatic Backups
Setting Up JetBackup (If Available on Your Account)
Many dotCanada.com hosting plans include access to JetBackup, an advanced backup solution:
- Log in to cPanel
- Search for "JetBackup" or find it in the BACKUP section
- Click on JetBackup
- Navigate to the "Backup Now" tab
- Select the type of backup you want to create (Home directory for website files)
- Click Backup
- To schedule automatic backups, go to the "Backup Schedule" tab
- Configure your desired backup frequency and retention settings
- Click Save to activate the schedule
Best Practices for Website Backups
How often should you back up your website?
- Static websites: Monthly backups may be sufficient if content rarely changes
- Dynamic websites (blogs, forums): Weekly backups are recommended
- E-commerce sites: Daily backups are ideal to protect order data
- Before major changes: Always create a backup before updates, theme changes, or new plugin installations
Don't keep all your backups in one place:
- Follow the 3-2-1 rule: Keep 3 copies of your data, on 2 different types of storage, with 1 copy offsite
- Local storage: Keep recent backups on your computer or external drive
- Cloud storage: Upload backups to services like Google Drive, Dropbox, or OneDrive
- Physical media: Consider saving critical backups to DVD or external hard drives stored securely
Regularly test your backups to ensure they work:
- Test restoration: Periodically restore a backup to a test environment to verify it works
- Check file integrity: Open archive files to ensure they're not corrupted
- Verify completeness: Ensure all necessary files are included in your backups
- Document the process: Keep notes on how to restore from your backups
Decide how long to keep different backups:
- Implement a rotation system: Keep daily backups for a week, weekly backups for a month, and monthly backups for a year
- Archive important milestones: Keep permanent archives of major website versions or after significant updates
- Balance storage space: Delete older backups as needed to manage storage costs, but maintain your retention policy
What to Include in Your Website Backup
A complete website backup should include:
- Website files: All HTML, CSS, JavaScript, images, and other content files
- Configuration files: .htaccess, php.ini, and CMS configuration files
- Databases: All databases associated with your website
- Email data: If you use email accounts on your domain
- Custom settings: Any custom server or application configurations
Backing Up Specific Content Management Systems
WordPress Backup Tips
- Key files to back up:
- Everything in the wp-content folder (themes, plugins, uploads)
- wp-config.php (contains your database connection information)
- Your WordPress database (contains posts, pages, settings)
- Plugin options:
- Consider using backup plugins like UpdraftPlus, BackupBuddy, or WP Time Capsule
- These can automate the backup process and provide scheduled backups
Joomla Backup Tips
- Key files to back up:
- All files in your Joomla installation
- configuration.php (contains database and site configuration)
- Your Joomla database
- Extension options:
- Consider extensions like Akeeba Backup for automated Joomla backups
Drupal Backup Tips
- Key files to back up:
- All Drupal core files
- Sites directory (contains your custom themes, modules, and settings)
- settings.php (contains database connection information)
- Your Drupal database
- Module options:
- Consider modules like Backup and Migrate for automated Drupal backups
Troubleshooting Backup Issues
Backup Process Times Out
If your backup process times out:
- Break it down: Back up smaller sections of your site separately
- Optimize before backup: Remove unnecessary files, old logs, or temporary data
- Contact support: For very large sites, our support team can assist with backup solutions
Cannot Download Backup Files
If you have trouble downloading backup files:
- Check file size: Very large backups may fail to download through the browser
- Try FTP: Use FTP to download large backup files
- Split archives: Break large backups into multiple smaller archives
If you need assistance with creating or managing backups for your website, please contact our support team.