Backups are the unsung heroes of a healthy online business. One accidental plugin update, a corrupted database, or a targeted attack can cost hours — even days — of downtime and lost revenue. This guide explains how CodeGuard Backup (offered through Zee-Way Hosting) helps small business owners, developers, web designers, and hosting resellers build a resilient backup strategy that minimizes downtime and simplifies recovery.
Why backups matter: risks, recovery goals, and business impact
Before diving into tools and how-tos, let’s set a clear objective. Backups aren’t just copies of files — they’re insurance for your reputation, revenue, and client trust.
Data loss scenarios: accidental deletion, software bugs, malware/ransomware, server failure, human error.
Downtime consequences: lost sales, damaged SEO rankings, customer churn, and wasted repair costs.
Recovery objectives: Recovery Time Objective (RTO) — how quickly you need to be back online. Recovery Point Objective (RPO) — the maximum acceptable data loss in time (e.g., last 4 hours).
What CodeGuard does (and what it doesn’t)
CodeGuard Backup is an automated website backup and monitoring service that integrates with hosting accounts. It protects files and databases, offers versioned backups, and automates restore operations. When paired with Zee-Way Hosting services like Shared Web Hosting or Cloud VPS, CodeGuard becomes part of a full protection stack.
Automated daily backups (frequency configurable).
File change monitoring and alerts.
Versioning with point-in-time restores.
Database backup support (MySQL/MariaDB).
One-click restore or granular file restores.
Backup strategy checklist (before you set up CodeGuard)
Inventory: list your website files, databases, and third-party assets (e.g., CDN-hosted images).
Pick a retention policy (30/60/90 days or longer for compliance).
Choose an access method (cPanel/FTP/SFTP/SSH) that CodeGuard will use.
Confirm admin credentials, database names, and DB user permissions.
How to set up CodeGuard Backup (step-by-step)
CodeGuard supports common connection methods. Below are quick setup paths for two common scenarios: a cPanel-based site, and a custom Linux server (AlmaLinux, Ubuntu, or Rocky Linux) where you’ll connect using SFTP/SSH.
Option A — Quick setup via cPanel (shared hosting)
Find the CodeGuard integration or visit your CodeGuard dashboard link from the Zee-Way portal.
Follow the cPanel plugin prompts: choose the site domain, confirm the document root, and authorize CodeGuard to access files and databases.
Set backup frequency, retention, and notification preferences.
Run an initial backup and verify the results in the CodeGuard dashboard.
Option B — SFTP/SSH setup for AlmaLinux, Ubuntu, or Rocky Linux
If you run a VPS or dedicated server, you’ll typically connect CodeGuard using SFTP paired with SSH key authentication. Below are commands to prepare a user and an SSH key on AlmaLinux/Ubuntu/Rocky.
# Create a dedicated backup user (run as root or with sudo)
sudo adduser codeguard-bkp
sudo mkdir -p /home/codeguard-bkp/.ssh
sudo chown -R codeguard-bkp:codeguard-bkp /home/codeguard-bkp/.ssh
sudo chmod 700 /home/codeguard-bkp/.ssh# On your local machine (generate key pair)
ssh-keygen -t ed25519 -f codeguard_ed25519 -C "codeguard@yourdomain.com"# Copy the public key to the server
# Replace user@server with your SSH admin account
ssh-copy-id -i codeguard_ed25519.pub codeguard-bkp@your-server-ip# Verify permissions on the server
sudo chmod 600 /home/codeguard-bkp/.ssh/authorized_keys
sudo chown codeguard-bkp:codeguard-bkp /home/codeguard-bkp/.ssh/authorized_keys
After the key is in place, give CodeGuard the SFTP/SSH details: server IP, port (22 by default), username (codeguard-bkp), and the private key contents. In the CodeGuard panel choose the site path (e.g., /var/www/html) and add database credentials if you want database backups.
Backing up and restoring your database (MySQL/MariaDB)
CodeGuard can automate database dumps, but you should also know how to create and restore them manually. Examples below use mysql/client tools available on AlmaLinux, Ubuntu, and Rocky Linux.
# Create a compressed DB dump (run on server or via SSH)
mysqldump -u db_user -pYourPassword --single-transaction --quick --lock-tables=false your_database | gzip > /root/backups/your_database-$(date +%F).sql.gz# Restore a compressed DB dump
gunzip < /root/backups/your_database-2025-08-01.sql.gz | mysql -u db_user -pYourPassword your_database
Tip: Use a DB user with only the necessary permissions for backups. When granting privileges, avoid giving SUPER or other admin-level permissions unless required.
Testing restores — the most important step
A backup isn’t worth much unless you can restore it reliably. Schedule regular restore tests and document the steps for both file and DB recovery.
Test file restores by restoring to a staging directory, then compare file checksums against production.
Test DB restores on a staging DB and validate application behavior and queries.
Time your restore process to ensure it meets your RTO.
File-level restore: Select file(s) in CodeGuard and restore to the original path or download locally.
Database restore: Use CodeGuard’s DB restore or upload a manual dump via the hosting control panel or command line.
Full restore: Trigger a full-site restore to a staging environment, validate, then swap DNS or promote the staging instance.
Backup retention and storage comparison
Retention Policy
Best For
Storage/Cost Considerations
14–30 days
Small blogs and dev sites
Lower cost, fewer restore options
60–90 days
Small businesses with regulatory needs
Balanced cost and restore flexibility
6–12 months
E-commerce and financial records
Higher cost, better for audits
Choose retention based on recovery needs and compliance. CodeGuard stores versioned backups so you can roll back to a specific date.
Security, encryption, and compliance
When selecting a backup provider, pay attention to encryption at rest and in transit, access controls, and where backups are stored geographically (relevant to GDPR). CodeGuard encrypts transmissions and stores backups with secure access controls — make sure to enable two-factor authentication on your Zee-Way Hosting account and CodeGuard dashboard.
Enable 2FA for all admin accounts.
Rotate SSH keys and database passwords regularly.
Limit the backup user to the necessary directories and DBs.
Keep an offsite copy (CodeGuard provides remote storage; consider a secondary export for extra safety).
Automation and monitoring best practices
Automation reduces mistakes and speeds recovery. Use CodeGuard features plus simple scripts and notifications:
Enable email/SMS alerts for failed backups or large unexpected file changes.
Use webhooks to integrate CodeGuard with your team chat (Slack) or ticketing system.
Automate periodic restore tests to a staging environment via scripts or CI tools.
How CodeGuard complements other Zee-Way services
Backups are only one layer of protection. Here’s how CodeGuard fits into a multi-layered approach using other Zee-Way Hosting products:
SSL Certificates: Keep data encrypted in transit — get an SSL certificate from Zee-Way to protect forms and login credentials: SSL Certificates.
SiteLock: Use SiteLock malware scanning and firewall to reduce the risk of compromise that forces a restore: SiteLock.
Marketgoo & SocialBee: If you restore content, you’ll want to rebuild traffic and social presence quickly — Marketgoo (SEO) and SocialBee (social management) help re-attract visitors: Marketgoo, SocialBee.
OX App Suite: Protect your email continuity and communications during incidents with OX App Suite mail: OX App Suite.
Practical checklist: daily, weekly, and monthly tasks
Daily: Verify backup success and monitor alerts.
Weekly: Spot-check random file and DB restores to staging.
Monthly: Review retention policy and rotate keys/passwords.
Quarterly: Full disaster-recovery drill (restore to staging and simulate failover).
Common restoration scenarios and quick commands
Here are quick, practical commands and actions you’ll use or hand to a developer during a restore.
# Restore a single file via SFTP (example using sftp)
sftp -i codeguard_ed25519 codeguard-bkp@your-server-ip
sftp> get /var/www/html/wp-content/uploads/2025/08/image.jpg /tmp/image.jpg# Replace production file (backup first)
sudo cp /var/www/html/wp-content/uploads/2025/08/image.jpg /var/www/html/wp-content/uploads/2025/08/image.jpg.bak
sudo mv /tmp/image.jpg /var/www/html/wp-content/uploads/2025/08/image.jpg
sudo chown www-data:www-data /var/www/html/wp-content/uploads/2025/08/image.jpg # Ubuntu example
Adjust ownership commands for your distribution (e.g., apache:apache on CentOS/AlmaLinux or www-data on Ubuntu).
Final thoughts — build backups into your standard operating procedures
Backups are an operational discipline, not a one-time task. CodeGuard Backup, paired with the performance and support of Zee-Way Hosting, gives you automated, versioned backups that reduce downtime and simplify recovery. Combine backups with other layers — SSL, SiteLock scanning, and monitoring — to protect revenue and reputation.
If you’re ready to secure your website with automated, reliable backups and easy restores, explore CodeGuard Backup at Zee-Way Hosting. Our team can help you pick a plan, configure SFTP/SSH, and run your first test restore so you know your data is safe.
Get started: Learn more and sign up for CodeGuard Backup: https://www.zee-way.com/portal/store/codeguard. For tailored hosting and managed options, check our Cloud VPS and Dedicated Servers.
Need help? Contact Zee-Way Hosting support 24×7: https://www.zee-way.com/about/contact.