How to create snapshot

Create directory

mkdir -p /var/www/snapshot

Install package

sudo apt install lz4

Create snapshot

cd $HOME/.swisstronik
sudo systemctl stop swisstronikd
tar -cf - data | lz4 > /var/www/snapshot/swisstronik-snapshot.tar.lz4
sudo systemctl start swisstronikd

Last, you must setting on nginx for routing.

Last updated