Manual Backup and Restore for the Turbine Multitenant 23.x / 24.x / 25.x
the turbine platform 23 x/24 x uses snapshots to backup and restore your data the snapshot feature is available on an embedded and existing cluster deployment note in case there are problems with the snapshots and there is a dire need to backup and archive the data use the method below to alternatively backup and restore the data backup the data the steps outlined below will store a backup of the data inside the swimlane tools container, copy the data to the running host, and optionally copy them to another host for safekeeping run the backup script it will generate a swimlane tgz and swimlanetenant pgdump backup in the /dump folder of the swimlane tools container kubectl exec swimlane tools 0 n default /bin/bash c "nohup bash c 'mkdir p /dump && python3 /usr/local/bin/backup restore multitenant py backup && python3 /usr/local/bin/elasticsearch/elasticsearch backup py backup' > /var/log/turbine backup log 2>&1 &" \# you can then check progress with kubectl exec n default swimlane tools 0 tail f /var/log/turbine backup log the backup script generates two files and one directory in the /dump folder inside the swimlane tools pod \ swimlane tgz \ swimlanetenant pgdump \ elasticsearch/ compress the elasticsearch directory for easy retrieval and storage kubectl exec swimlane tools 0 /bin/bash c "tar cvf /dump/elasticsearch tar /dump/elasticsearch" transfer swimlane tgz, swimlanetenant pgdump, and elasticsearch tar from the swimlane tools pod to the /tmp folder on the host machine optionally, copy them from the /tmp folder on the host machine to your external vm for safekeeping kubectl cp swimlane tools 0 /dump/swimlane tgz /tmp/swimlane tgz kubectl cp swimlane tools 0 /dump/swimlanetenant pgdump /tmp/swimlanetenant pgdump kubectl cp swimlane tools 0 /dump/elasticsearch tar /tmp/elasticsearch tar restore the data the steps outlined below will copy an existing backup into the swimlane tools container and perform a restore of the data \# copy the swimlane tgz, swimlanetenant pgdump, and elasticsearch tar backup into the swimlane tools container kubectl cp /tmp/swimlane tgz swimlane tools 0 /dump/swimlane tgz kubectl cp /tmp/swimlanetenant pgdump swimlane tools 0 /dump/swimlanetenant pgdump kubectl cp /tmp/elasticsearch tar swimlane tools 0 /dump/elasticsearch tar kubectl exec swimlane tools 0 /bin/bash c 'tar xvf /dump/elasticsearch tar c /dump strip components=1' \# run the restore script kubectl exec n default swimlane tools 0 /bin/bash c "nohup bash c 'python3 /usr/local/bin/backup restore multitenant py restore && python3 /usr/local/bin/elasticsearch/elasticsearch backup py restore' > /var/log/turbine restore log 2>&1 &" \# to monitor progress kubectl exec n default swimlane tools 0 tail f /var/log/turbine restore log note the restore may take time before you start seeing progress on the screen