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 is 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 installs all the required modules in order to prepare for the installation of 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 multiple backup schedulers depending on your needs, this can be based on day, month, year, etc.
Important:Virtualmin also provides a module to manually backup one or more instances, by simply going to menu, Backup and Restore -> Backup Virtual Servers and do the same operation as above.
70 / 5,000
You can access Tiki Manager via GUI or CLI. For more details, see the commands offered by Tiki Manager here https://doc.tiki.org/Manager
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)
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
Syncthing is a continuous file synchronization program. It synchronizes files between two or more computers in real time, safely protected from prying eyes. Your data is your data alone and you deserve to choose where it is stored, whether it is shared with some third party, and how it’s transmitted over the internet. Please read more here https://syncthing.net/
Foreach Virtual server 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).