How to Create Webmin Backups

Since Webmin is a lesser discussed product, there’s less documentation available on how to secure Webmin servers. The easiest issues to resolve: 

Once you log into the Webmin dashboard, there are multiple options to backup data on a Webmin server. We’ll cover how to do the following below: 

If you don’t need cPanel, don't pay for it. Only pay for what you need with our Cloud VPS solutions

check markCentOS, Debian, or Ubuntu    check markNo bloatware    check markSSH Key management made easy

Backup Webmin Filesystem

Webmin offers the ability to schedule full server backups in tar format.

The settings option in the upper-left corner allows you to run backups in the foreground / background, send backup notifications, and more.

  1. On the left, under System, select Filesystem Backup.
  2. Select the file icon to the right of the text box.
  3. Select a file path to backup.
  4. Select Add a new backup of directory: to continue.
  5. On the next page, add additional directories to backup.
  6. Specify the directory (or remote system) and filename for the backup to be created.
  7. Select the Remote backup command if applicable. Then fill in the Password for SSH/FTP login.
  8. Select Backup options to specify backup label, files to skip, and more.
  9. Select Backup schedule to set cron job timing, what email account should receive results notifications and in what situations.
  10. At bottom, select Save or Save and Backup Now. You can also restore filesystem backups from here.

Webmin backups are listed on the Filesystem Backup page.

Configuring Webmin backups for the filesystem

Backup Webmin Configuration Files

Webmin has the ability to create, schedule, and restore backups of essential server configuration files in the tgz format.

The settings option in the upper-left corner allows you to change the backup data time-frames to strftime or Webmin variable substitution, update the From address for email notifications, and more.

  1. On the left, under Webmin, select Backup Configuration Files.
  2. Select Webmin modules to backup. You can select multiple modules with the Ctrl key or all modules between two modules with the Shift key.
  3. Select a backup destination: local file, external FTP server, external SSH server, or browser download.
  4. Specify other files to include in the backup: module configuration files, server configuration files, and other files listed in the text box at the bottom of the page.
  5. At the bottom, select Backup Now.
Configuring Webmin backups for configuration files

Schedule Webmin Configuration Backups

  1. At the top of the Backup Configuration Files page, select Scheduled backups.
  2. Edit backup options same as for immediate backups covered above. 
  3. Select Pre and post backup commands to add pre-backup and post-backup commands if needed. Possible usage examples for this option include loading / unloading tapes and creating checksums.
  4. Select Backup schedule to set the cron job timing, what email account should receive results notifications, and when.
  5. At the bottom, select Create.

You’ll see created Webmin backups listed on the Scheduled backups page showing the backup destination, Webmin modules, and scheduled time.

Restore Webmin Configuration Files

  1. At the top of the Backup Configuration Files page, select Restore now.
  2. Select modules to restore and other files if necessary.
  3. Under Restore from, specify the backup file for restoration.
  4. Choose where to apply configurations and list files that would be affected.
  5. At the bottom, select Restore Now.

Integrate Bacula for Webmin Backups

The Bacula Webmin module allows system administrators to integrate Webmin servers with a Bacula backup and recovery instance. To do so, you must install the Bacula Webmin module from Webmin > Webmin Configuration > Webmin Modules. Choose an installation method, then select Install Module at the bottom. You may then configure backups with the Bacula Backup System from the left-hand menu.

Learn more essential server administration tasks from our Cloud Server Hosting Product Guide.

J
Jacqueem Content Writer I

Technical writer focused on cybersecurity and musicianship.

More Articles by Jacqueem

Was this article helpful? Let us know!