hs.scripts/rollback/flarum/rollback.sh

15 lines
308 B
Bash
Raw Normal View History

2024-05-02 11:33:35 +02:00
#!/bin/bash
set -e
source $HOME/scripts/config.env
cd $HOME/flarum
php ./flarum nearataMaintenanceMode:toggle true
echo "syncing data..."
rsync -aAX --delete $HOME/var/rollback/flarum/ $HOME/flarum/
echo "feeding the dump..."
mysql -u $dbuser $db < $dump
php ./flarum nearataMaintenanceMode:toggle false