In case you have some Tiki instances on Virtualmin and you want automatic backups of different Tiki instances to various local computers for safekeeping.
These are high level operation when it about to combine Virtualmin , Tiki Manager and Syncthing to do so.
For a hosting company and its customer, this is the optimal solution: This permits a customer to delegate the hosting / management of an application while obtain automatic backups of their application and data.
At a high level:
https://wikisuite.org/Tiki-Manager-and-Syncthing-for-automated-offsite-backups#Benefits_Features
How to install WikiSuite
This installation of WikiSuite install all the require module in order to ready to install a Tiki instance, such as: Tiki-Manager GUI and CLI and Syncthing installation script
Each Tiki instance can be installed as a distinct website using Tiki-Manager on a virtual server or sub-virtual server.
As we are planning to backup each Tiki instance, we can backup each virtualserver or sub-virtualserver with all configuration need.
then click on create to validate the scheduler.
Note that you can setup up multiple backup scheduler based on the need, it can be day, month, year, ....
Tiki-Manager can be access via GUI or CLI
The configuration can be done via cli, for more detail about tiki-manager command https://doc.tiki.org/Manager#instance:backup
The Tiki Manager archive folders have the following pattern:
Check that your backup is OK, and move on to the next step
Tiki Manager will make the backups and also has a retention cycle (keep last 7 days, last 4 weeks and once per month forever)
Virtualmin provide as module to schedule backup of all
https://doc.tiki.org/Manager#manager:setup-backups
In case you want to backup one instance, you can proceed as shown above. make sure you are on Tiki-manager folder
php tiki-manager instance:backup --instances=3 --no-interaction
You may want to install this in a cronjob. To do it every day at midnight, do the following.
echo '0 0 * * * cd /opt/tiki-manager/app/ ; php tiki-manager instance:backup --instances=3 --no-interaction' > /etc/cron.d/tm-instance.wikisuite.org-backup
Foreach virtualserver you can install an instance of Syncthing, and each one can work without interfering with other.
Make sure Syncthing automatically restarts when you reboot so that you have unattended automatic backups. Just reboot to see if it's OK. If not, you need to look up the documentation for your Operating System.
Syncthing by default is set to sync multiple folders so they get to the exact same set of files and folders. So, if you delete a file in one folder, the deletion is propagated. In the contexts of backups, this could cause issues. Examples:
The solution is:
Because the master server is set to "Send Only", there is no point in setting to "Staggered" (It doesn't receive any data, and thus doesn't need versioning).