How to backup configuration files on Webmin

Most Linux items that need backing up are stored in user home directories. This usually includes virtual web server directories as well, depending on the web server and settings you are using. One exception to this rule is configuration files. These are stored in /etc and other places. When it comes time to backup, many people backup database files and home directories but forget about configuration files. Webmin has a solution.

To backup configuration files, login to Webmin and navigate to “Webmin – Backup Configuration Files”. Next, select the Webmin modules that you want to backup. This might include Apache web server, Bind DNS, etc. You then need to specify where you want the backups to be saved. You can save them locally to a file, use an FTP or SSH server or download them through your web browser. Finally, specify whether you want to backup the server configuration files, the Webmin module config files or both. You can then click “Backup Now”.

In addition to manual backups, the second tab in the module allows you to schedule backups. The settings are pretty much the same, except the last section gives you a cron tool that lets you specify the times when you want backups to occur. You can do simple schedules for cron hourly, daily or monthly, or you can specify specific dates and times. When you are finished, click Create. You will now have your configuration files backed up and safe.