Something went wrong. Try again.
Something went wrong. Try again.
Shell
at batch-writes
123456789101112131415#!/bin/sh
VERSION=$1NOW=$(date +%s)HOME=/var/lib/supercell
cp ${HOME}/production.env ${HOME}/backups/${NOW}-production.env
sqlite3 ${HOME}/database.db ".backup '${HOME}/backups/${NOW}-database.db'"
chown supercell:supercell ${HOME}/backups/*
systemctl restart supercell