hs.scripts/rollback/wordpress/rollback.sh
2024-04-25 13:49:12 +02:00

10 lines
211 B
Bash

#!/bin/bash
set -e
source $HOME/scripts/config.env
echo "syncing data..."
rsync -aAX --delete $HOME/var/rollback/wp-content/ $HOME/wordpress/wp-content/
echo "feeding the dump..."
mysql -u $dbuser $db < $dump