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:

  1. Log in to your cPanel account at https://{hostname}.mysecureservers.com:2087
  2. In the search box at the top, type "Backup" or navigate to the FILES section
  3. Click on Backup Wizard
  4. Click Backup to create a new backup
  5. 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)
  6. If you selected Home Directory backup, click Generate Backup
  7. The system will create a compressed archive of your files
  8. 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:

  1. Log in to cPanel
  2. Navigate to Backup or Partial Backups
  3. Scroll to the "Download a Home Directory Backup" section
  4. Click Home Directory to start the backup
  5. Wait for the backup to generate (this may take some time depending on your site size)
  6. 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:

  1. Log in to cPanel
  2. Open File Manager
  3. Navigate to the directory you want to back up (e.g., public_html for your main website)
  4. Select the files or folders you want to include in your backup
  5. Click Compress in the top toolbar
  6. Choose the compression format (ZIP is recommended for best compatibility)
  7. Enter a name for your archive
  8. Click Compress File(s)
  9. 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:

  1. Log in to cPanel
  2. Search for "JetBackup" or find it in the BACKUP section
  3. Click on JetBackup
  4. Navigate to the "Backup Now" tab
  5. Select the type of backup you want to create (Home directory for website files)
  6. Click Backup
  7. To schedule automatic backups, go to the "Backup Schedule" tab
  8. Configure your desired backup frequency and retention settings
  9. Click Save to activate the schedule
Note: The availability of JetBackup and its specific features may vary depending on your hosting plan. If you don't see JetBackup in your cPanel, contact our support for information about backup options on your specific plan.

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
Important: While dotCanada.com maintains server-level backups for disaster recovery, these are not a substitute for your own regular backups. Our server backups are primarily for system recovery, not for recovering individual files or websites that were accidentally deleted or modified.

If you need assistance with creating or managing backups for your website, please contact our support team.

Was this answer helpful? 0 Users Found This Useful (0 Votes)