Last updated on: 2020-01-15
Authored by: David Hendler
This article shows you how to get the most out of Rackspace Cloud Backup and addresses frequently encountered scenarios. This article should help you understand the key backup concepts, make smart choices about what to back up (and how often), make the most of data restoration, and resolve the most commonly encountered Cloud Backup issues.
Note: Cloud Backup works only with Rackspace Cloud Servers.
Following are the key features of Cloud Backup:
Note: Cloud Backup does not take snapshots of your server. To read more about how Cloud Backup differs from snapshots, see Rackspace Cloud Backup vs. Cloud Server Image Backups. For backup consideration for your General Purpose server, see Best practices for backing up your data: Cloud Block Storage versus Cloud Backup.
Knowing the language of backups can help you make informed decisions about your backup operations.
Warning: Cloud Backup does not follow symlinks. For example, if a symlink points to a file, the symlink itself is backed up, but the file it points to is not backed up. Likewise, if a symlink points to a folder, the symlink itself is backed up, but the folder and anything under the folder are not backed up. If you want to back up a file or a folder, do not use a symlink.
As a best practice for Linux® web servers and database servers, we recommend using Cloud Backup on the following directories:
/var/www
/var/lib/mysqlbackup
/home
/etc
Note: Do not compress your data before you back it up. Doing so defeats the backup deduplication, which is typically more efficient than simple file compression. Deduplication works across all files in all snapshots and stores only the new data. Deduplication almost always saves you more storage space and money during the backup process than simple compression does.
We do not support backing up the following items:
These file types either change too rapidly (databases, logs, caches) or don’t exist long enough (session files) to be backed up. You should not back up session files or caches at all, but if you need to back up databases or log files, you must implement the following workarounds:
The Cloud Backup agent skips the following types of files automatically:
Occasionally, a bad actor might attempt to destroy a company’s cloud assets, such as files, websites, databases, and so on. The bad actor might be a foreign attacker who stole cloud account authentication info, it might be a disgruntled employee with access to company assets, or it might be any similar bad actor. Attacks like this can cripple or kill a company, and the ability to recover backups might make the difference between whether the company survives the attack or not.
It is possible to provide an extra layer of protection from such an attack for critical backups by keeping an offsite copy of the files and container structures that are used to restore those backups. An offsite copy is inaccessible to the bad actor who has your Rackspace login credentials. General instructions for how and why to use offsite copies are at the end of the article Recovering from a Bad Actor Attack.
You can configure backups and restores in many ways. To make Cloud Backup work for you, it helps to understand some of the trade-offs you make when you configure the many options available to you.
Note: With Performance Cloud Servers, Cloud Monitoring only monitors the system disk. The data disk is not monitored. For data disk backup, use Cloud Block Storage.
Note: When you configure your backup, choose your contact email carefully. If anything goes wrong, the first alert is sent to that email address.
When trying to determine how often to back up a file, consider the following variables:
Criticality is the most important factor to consider when making backup decisions. The more critical the file is to your business operations, the more often you want to back up this file.
If the speed of backups and restores is important to you, then size is an important consideration. Large files take longer to back up and to restore. It might be wise to back up large files less frequently.
Data churn is the last variable to consider, and perhaps the trickiest to handle. Files that change often invalidate blocks that have been stored previously. Depending on criticality, it might be wise to snapshot files with high data churn and back up those snapshots.
Back up less often files that have | Back up more often files that have |
---|---|
Lower criticality | Higher criticality |
High data churn | Low data churn |
Larger size | Smaller size |
Note: Do not make decisions about backup frequency lightly. If you try to back up or restore files more frequently than the backup engine can manage, anomalous behavior might occur.
Important: Test your restores to ensure that your data is saved as you expect. As with any disaster recovery plan, you should schedule semi-regular restore operations of your backed-up data sets. Doing so provides you with a reference for how long this process can take and ensures that your backups are complete and viable.
Another point to consider is the restore destination. Restoring to the original location and overwriting saves on storage space, but risks accidentally overwriting important existing files. Proceed with caution when restoring.
Encryption is important for keeping your data confidential, but encryption has its costs. It takes significantly longer to back up and restore encrypted data. Consider whether the data that you are storing must be encrypted. If not, then don’t use encryption.
Warning: After you encrypt a backup for a server, you cannot remove encryption from that backup.
Some elements of Cloud Backup take up a nontrivial amount of space on a server’s system drive. When you are running Cloud Backup on servers with limited resources, such as small system drives, you can perform some actions to help reduce Cloud Backup’s footprint.
The files that are necessary to make Cloud Backup work, such as the agent and tool executables and the configuration files are relatively small. However, the agent log files and the local agent backup database files have the capacity to grow very large. By default, the log files are configured to have a maximum size. Even though these files typically grow slowly, that size can eventually become very large over time. On the other hand, depending on the configuration of your backups, the local agent backup database files can grow indefinitely and quickly.
For log files, you can keep the files smaller in the following ways:
For database files, you can keep the files smaller in the following ways:
infinite
.However, the best way to reduce the size of the backup files on your system drive is to move most of the files from the system drive and to another drive. On both Linux and Windows, if you do not already have another drive to which to move the files, you must first create the second drive and then attach it to your system.
The files created and used by Cloud Backup are stored by default on the system drive. In rare cases, they might become very large and crowd the system drive.
On Linux cloud servers, the solution is to use an external drive for these files and create a mount point to the path of the log or database files. For information about the location of these paths, see the “Locations of Cloud Backup agent files” section in Cloud Backup agent logging.
On Windows cloud servers, you can use the AgentConfig.exe tool located in the C:\Program Files\Driveclient
folder to move these files from the system drive by using the following steps:
Shut down the Cloud Backup agent service.
Double-click AgentConfig.exe to open the Agent Configuration window.
Click the Cache tab.
The current location for the cache, which holds both the log files and the backup database files for the local agent, is shown in Cache Source Location.
To change the location, click the folder icon next to Cache Target Location and select a folder on a different drive.
To move the cache location, click the green arrow at the top of the window. The progress displays in Move Log.
Depending on the size of the cache files, this process might take some time.
Restart the Cloud Backup agent service.
Note: To move the cache files, you must shut down the Cloud Backup agent service briefly.
Alternatively, you can move only the backup local database files for the agent by using the Database tab.
In addition to moving the cache location for the agent, you can use the AgentConfig.exe tool to perform other optimizations from the General tab of the Agent Configuration window.
When you click the blue Save icon at the top of the Agent Configuration window, you can save multiple changes in the settings at one time.
By default, the Volume Snapshot Service (VSS) is used to make backups more reliable, but there might be times when you want to disable it. For example, VSS might take up disk space on a volume that is already running low.
To turn off VSS shadowing for backups, select VSS Disable and then click Save.
Auto-update is a service that continually keeps the Cloud Backup agent updated. In rare cases, you might want to turn this service off.
To turn off auto-update, select Auto Update Disable and then click Save.
There might be times when you need to debug auto-update. The Auto Update Debug option debugs not only the auto-updater service (in the Event Logger), but also the installer and MSI.
To turn on debugging for auto-update, select Auto Update Debug and then click Save.
Older versions of the agent are sometimes installed without adding an entry in the Add/Remove Programs console.
To repair this issue, select Repair Add/Remove Programs Listing and then click Save.
You can change the most commonly changed log file settings by using the AgentConfig.exe tool.
Set the maximum size of each rollover log file by changing the value in the Max Log Size (MB) field.
Set the maximum number of rollover logs by changing the value in the Max Rollover Logs field.
You can temporarily change the log level by selecting the value in the Local Log Level field. The log level is changed every time that the Cloud Backup API sends a configuration change or update to the agent. To keep logging at the appropriate level, also set the log level in the Cloud Control Panel. The advantage of setting the log level locally is that doing so changes the level before receiving a configuration change or update, which is useful for things like debugging agent startup.
After you change any of these values, click Save.
For more information, see Cloud Backup agent logging.
To minimize your chances of experiencing the following issues, keep your backup agent updated. Many errors and issues are fixed between releases.
My backups are randomly being corrupted. Why?
If your server has a backup agent and cloned it to create a new backup system, then two backup agents exist with the same credentials writing to the same vault.
Ensure that the agent on the cloned backup server is reregistered before any backups are run.
My backup is experiencing network errors.
Ensure that your backup server has a connection to both ServiceNet and PublicNet. If it is on an isolated network, the backup agent can’t function properly.
My backups sometimes fail.
Backup failure is most commonly caused by a failure to communicate with Cloud Files, running out of disk space, or a failure to communicate with Cloud Backup.
Sometimes, the agent might fail to back up a particular file because of a permissions error. Either the file is in use when the agent attempts to save it or the file can’t be read by the agent. Consider permissions when looking for the root cause of a backup failure.
Ensure that you’re running the latest agent release. Then, attempt to determine the cause of the error. If the error is intermittent, try the backup again.
My backup or restore is slow. What can I do?
If your backup or restore is encrypted, it is especially slow. Also, review the “Choosing what to back up” section for what you should not be backing up. The less there is to back up or restore, the faster the process is.
©2020 Rackspace US, Inc.
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License