1. Introduction
If a website is failing or a hardware failure occured on the webserver, restoring a backup is the easiest option if a quick fix is not possible. The best way is to setup scheduled backups within Virtualmin, such that each website (virtual server) is automatically backed up with a certain frequency, preferably stored remote on for example a NAS.
Without a backup available a restore is impossible. Backup / restore can also be used to relocate a website to another server.
This article describes how to setup scheduled backups within Virtualmin.
2. Requirements
Required for restoring a Piwigo backup on a new server:
- A working Webmin/Virtualmin server on a Raspberry Pi
3. Setup the backup schedule
Execute the following steps to make a complete backup of a all your websites:
- Go to Virtualmin and select “Backup and Restore” > Scheduled Backups.
- Click on “Add a new backup schedule”
- Select all the virtual servers
- Select the features and settings to backup. Normally backup all features and no global settings.
- Select the backup destination. If a local file is selected you need to provide the path, for example:
1/home/backup_webservers/%Y%m%d_%H%M-backup-websites
Set the rest of the settings also:
- Set the scheduling and reporting settings. Do not forget to set backup time via the button in the blue circle!
- Click on the Create Schedule button
- When schedule has been created, test the backup by manually initiating it. Note that a backup can only be performed if at least one virtual server exists.
WARNING!! Folders which in essence are a symbolic link are not being backupped!!! If this is the case replace the symbolic linked folders by bind mount folders. Instructions can be found in the Article Store Piwigo data on a separate drive (Raspberry Pi, SSD), in section 3 Setup.
This concludes the steps for setting up scheduled backups within Virtualmin.






0 Comments