How to make backups using CodeGuard

What is CodeGuard?
How it works?
CodeGuard in your cPanel account with us
How to backup website files using CodeGuard
How to backup MySQL databases using CodeGuard
How to restore website using CodeGuard


What is CodeGuard?


CodeGuard is a service that was designed with the purpose to make the backup process as easy as possible. The CodeGuard system will constantly monitor the website and keep you informed of any changes, performing full automatic backups of your files to avoid any possible downtime.

CodeGuard is a commercial product, however, everyone can take advantage of the 14-day trial version here.

The main features include:
  • automatic backups
  • monitoring changes on your website
  • backup restoration in a few clicks

How it works?

There are generally 5 main stages that describe how the system works:

Connecting website
CodeGuard requires FTP/SFTP/MYSQL connections in order to perform constant backups.

Initial Backup
First time the system connects to the server, it retrieves all the files and databases and keeps them as an initial backup. All the future backups are differential.

Monitoring
Anytime the source code of your website is changed, CodeGuard will immediately send an alert notification to your contact email address.

Frequent Backups
After the monitoring is finished, CodeGuard will back up website files where it detects any changes and put them into a Time Machine which stores all the differential backups.

Restoration
CodeGuard offers three different ways of website restoration:

  • full website restoration
  • individual file restoration
  • MySQL database restoration


CodeGuard in your cPanel account with us

CodeGuard is integrated into cPanel and can be managed directly from your account. To start, you will need to log into cPanel > Exclusive for Namecheap Customers section > Codeguard Backups menu:



Once done, you will be forwarded to the CodeGuard signup page where you will be prompted to open a CodeGuard account or, if you already have one, you will be forwarded to the CodeGuard Dashboard:




How to back up website files using CodeGuard

In order to start the initial backup process, you will need to add your website via FTP first.
Once your CodeGuard account is set and ready to use, simply click on the Add FTP/SFTP Website button to start:



Then, you will be prompted to enter FTP access details for a successful connection.

NOTE: We strongly recommend to use SFTP connection to perform backups securely. The correct details can be found in the Welcome Guide email which was sent to your contact email address after the hosting package activation.

Once done, click on the Test Website Connection button to check if CodeGuard is able to set up a connection to the server.



When the connection is successfully established, you will be forwarded to the next page to select your root directory. Check the public_html directory and click on the Select Root Directory button:



On the next step, you will be asked to choose the files and folders of your website that will be backuped.
If you want to select all the files and folders, simply put the mark next to public_html and click Begin First Backup:



The next window will show you that the website has been added:




How to back up MySQL databases using CodeGuard

If you have a MySQL-based website, you may need to perform constant backups of the database as well. To add the database, navigate to Dashboard, then click on the Actions button next to your website name and choose the Add Database option:



You will be prompted to enter the database's hostname or IP address on the next screen:



On the next step you will need to indicate the settings for MySQL connection.

Direct access to MySQL server is disabled on all Shared, Reseller and Business servers due to security reasons.

NOTE: Contact our hosting support via live chat or via the ticket system in order to enable SSH access for your account.

Please choose the Tunnel over SSH option instead:

Database Hostname or IP: can be found in the Welcome Guide email
MySQL Username: username assigned to the MySQL database
MySQL Password: password assigned to the MySQL Username
MySQL Port: 3306
SSH Username: your cPanel username
SSH Password: your cPanel password
SSH Port: 21098

Then click on the Next Step button:



The next step will prompt you to check the database. Select the database and click on the Add Database button to confirm:




Now you will have your MySQL Database backed up on a daily basis.



How to restore a website using CodeGuard

To start restoration, navigate to Dashboard and click on the Actions button next to your website name and choose the Restore option:



In the next window, you will be able to choose from combined backup restoration which includes files and databases and a single MySQL Database backup restoration.

NOTE: To choose from all the differential backups available, click on the View All Backups option:



You will be able to choose from a few restoration options. To check all of them, click on the Restore Options. The options are as follows:

Automatic Restore: 1-click restoration process which performs full website restoration:



Download Zip: allows downloading zipped files and databases for manual restoration:



Selective Restore: partial restoration of a specific file:



Once you decide on the option to use, simply click on the corresponding button and follow on-screen instructions to finish restoration.


That's it!

              
                      Need any help? Contact our HelpDesk

Updated
Viewed
63936 times

Need help? We're always here for you.

notmyip