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

10 lines
258 B
Bash

#!/bin/bash
set -e
source $HOME/scripts/config.env
echo "syncing data..."
rsync -aAX --delete $HOME/wordpress/wp-content/ $HOME/var/rollback/wp-content/
echo "creating a new dump"
mysqldump -u$dbuser $db --add-drop-table > $HOME/var/rollback/wordpress.sql